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 committed Jun 14, 2024
1 parent 109d4c0 commit 9779728
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 9779728

Please sign in to comment.