Skip to content

Commit

Permalink
AP_Arming: added eeprom full arming check
Browse files Browse the repository at this point in the history
tell users if params may not persist
  • Loading branch information
tridge authored and peterbarker committed Jun 18, 2024
1 parent ae8ee53 commit 003f931
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/AP_Arming/AP_Arming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,11 @@ bool AP_Arming::system_checks(bool report)
return false;
}

if (AP_Param::get_eeprom_full()) {
check_failed(ARMING_CHECK_PARAMETERS, report, "parameter storage full");
return false;
}

// check main loop rate is at least 90% of expected value
const float actual_loop_rate = AP::scheduler().get_filtered_loop_rate_hz();
const uint16_t expected_loop_rate = AP::scheduler().get_loop_rate_hz();
Expand Down

0 comments on commit 003f931

Please sign in to comment.