From dd6c12508ac5420036836d912236c86f49f282e4 Mon Sep 17 00:00:00 2001 From: Lokesh-Ramina Date: Wed, 22 Nov 2023 14:28:15 -0800 Subject: [PATCH] Tools: Bug fix Arm check timeout on Periph --- Tools/AP_Periph/AP_Periph.cpp | 1 + Tools/AP_Periph/AP_Periph.h | 3 +++ Tools/AP_Periph/Parameters.h | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/Tools/AP_Periph/AP_Periph.cpp b/Tools/AP_Periph/AP_Periph.cpp index 446078ba0f..3f61511a59 100644 --- a/Tools/AP_Periph/AP_Periph.cpp +++ b/Tools/AP_Periph/AP_Periph.cpp @@ -24,6 +24,7 @@ #include #include "AP_Periph.h" #include +#include #if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS #include diff --git a/Tools/AP_Periph/AP_Periph.h b/Tools/AP_Periph/AP_Periph.h index f3908cf35c..c885f26f8e 100644 --- a/Tools/AP_Periph/AP_Periph.h +++ b/Tools/AP_Periph/AP_Periph.h @@ -266,6 +266,9 @@ class AP_Periph_FW { #if HAL_GCS_ENABLED GCS_Periph _gcs; +#endif +#ifdef HAL_PERIPH_ARM_MONITORING_ENABLE + bool arm_update_status; #endif // setup the var_info table AP_Param param_loader{var_info}; diff --git a/Tools/AP_Periph/Parameters.h b/Tools/AP_Periph/Parameters.h index c0671e5873..ff6413f926 100644 --- a/Tools/AP_Periph/Parameters.h +++ b/Tools/AP_Periph/Parameters.h @@ -153,6 +153,10 @@ class Parameters { AP_Int16 sysid_this_mav; #endif +#ifdef HAL_PERIPH_ARM_MONITORING_ENABLE + AP_Int32 disarm_delay; +#endif + #ifdef HAL_PERIPH_ENABLE_EFI AP_Int32 efi_baudrate; AP_Int8 efi_port;