From c206e123a98c1c00e971fb8fb916fae2987095d7 Mon Sep 17 00:00:00 2001 From: Bob Long Date: Mon, 22 Jul 2024 22:34:10 +1000 Subject: [PATCH] AP_HAL_SITL: initialize rcout safety state This allows BRD_SAFETY_DEFLT=1 to work correctly for SITL. --- libraries/AP_HAL_SITL/RCOutput.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_SITL/RCOutput.h b/libraries/AP_HAL_SITL/RCOutput.h index fe6324d4ba239..8192404794387 100644 --- a/libraries/AP_HAL_SITL/RCOutput.h +++ b/libraries/AP_HAL_SITL/RCOutput.h @@ -54,7 +54,7 @@ class HALSITL::RCOutput : public AP_HAL::RCOutput { bool _corked; uint16_t _pending[SITL_NUM_CHANNELS]; - AP_HAL::Util::safety_state safety_state; + AP_HAL::Util::safety_state safety_state = AP_HAL::Util::safety_state::SAFETY_DISARMED; }; #endif