From 007650af546737011ff2498235958285cb77c5e6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 14 Jun 2024 14:04:56 +1000 Subject: [PATCH] AP_Arming: added eeprom full arming check tell users if params may not persist --- libraries/AP_Arming/AP_Arming.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index 23a94c2760..958861892d 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -1084,6 +1084,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();