From f5a26495d32e080485503d22bbc4bdd904d27da8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 7 Jul 2023 13:27:26 +1000 Subject: [PATCH] AP_HAL: act on safety switch being enabled in SITL by zeroing outputs --- libraries/AP_HAL/board/sitl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL/board/sitl.h b/libraries/AP_HAL/board/sitl.h index 0f45103562..6f0780a3d6 100644 --- a/libraries/AP_HAL/board/sitl.h +++ b/libraries/AP_HAL/board/sitl.h @@ -47,7 +47,7 @@ #define HAL_HAVE_BOARD_VOLTAGE 1 #define HAL_HAVE_SERVO_VOLTAGE 1 -#define HAL_HAVE_SAFETY_SWITCH 0 +#define HAL_HAVE_SAFETY_SWITCH 1 // only include if compiling C++ code #ifdef __cplusplus