From 64fc60ce3288fed84278fa4dc9ea098969a833f4 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 fe6324d4ba..8192404794 100644 --- a/libraries/AP_HAL_SITL/RCOutput.h +++ b/libraries/AP_HAL_SITL/RCOutput.h @@ -54,7 +54,7 @@ private: 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