Skip to content

Commit

Permalink
updated test values
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonyee88 committed Jun 19, 2024
1 parent 86f00c8 commit 9426bd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Control Tasks/RockblockControlTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,8 @@ void RockblockControlTask::get_valid_signal(rockblock_mode_type good_signal, roc
sfr::rockblock::serial.read() == 'S' &&
sfr::rockblock::serial.read() == 'Q' &&
sfr::rockblock::serial.read() == ':') {
char signal = sfr::rockblock::serial.read();
// char signal = sfr::rockblock::serial.read();
char signal = 5; //CHANGE 1 (BENSON): HARDCODED SIGNAL TEST. REMEMBER TO PLUG ANTENNA OUT!
#ifdef VERBOSE
Serial.print("SAT INFO: signal level ");
Serial.println(signal);
Expand Down
5 changes: 3 additions & 2 deletions src/sfr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,14 @@ namespace sfr {
SFRField<bool> sleep_mode = SFRField<bool>(false, 0x2102);
SFRField<uint8_t> max_commands_count = SFRField<uint8_t>(6, 0x2103);
SFRField<uint8_t> queue_limit = SFRField<uint8_t>(5, 0x2104);
SFRField<uint8_t> max_signal_check = SFRField<uint8_t>(3, 0x2105);
SFRField<uint8_t> max_signal_check = SFRField<uint8_t>(12, 0x2105); //CHANGE 3 (BENSON): X4 MAX SIGNAL CHECK FROM 3 TO 12
SFRField<uint16_t> downlink_report_type = SFRField<uint16_t>((uint16_t)report_type::normal_report, 0x2106);
SFRField<uint16_t> mode = SFRField<uint16_t>((uint16_t)rockblock_mode_type::standby, 0x2107);
SFRField<uint32_t> last_downlink = SFRField<uint32_t>(0, 0x2108);
SFRField<uint32_t> downlink_period = SFRField<uint32_t>(20 * constants::time::one_minute, 0, 2 * constants::time::one_day, 0x2109);
SFRField<uint32_t> lp_downlink_period = SFRField<uint32_t>(constants::time::one_hour, constants::time::one_second, 2 * constants::time::one_day, 0x2110);
SFRField<uint32_t> transmit_downlink_period = SFRField<uint32_t>(20 * constants::time::one_minute, constants::time::one_second, 2 * constants::time::one_day, 0x2111);
//CHANGE 2 (BENSON): TRANSMIT DOWNLINK PERIOD = 10 MINS INSTEAD OF 20.
SFRField<uint32_t> transmit_downlink_period = SFRField<uint32_t>(10 * constants::time::one_minute, constants::time::one_second, 2 * constants::time::one_day, 0x2111);
SFRField<uint32_t> on_time = SFRField<uint32_t>(35 * constants::time::one_minute, 0, constants::time::one_revolution, 0x2112);

char buffer[constants::rockblock::buffer_size] = {0};
Expand Down

0 comments on commit 9426bd9

Please sign in to comment.