From 003f931d9cea30cad8cdb2d1096c975522d5408b 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 5b1bd0d2f95ec..dabe449715d5d 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -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();