diff --git a/libraries/AP_HAL/board/empty.h b/libraries/AP_HAL/board/empty.h index 78aa976de6..f1198d75fa 100644 --- a/libraries/AP_HAL/board/empty.h +++ b/libraries/AP_HAL/board/empty.h @@ -10,3 +10,4 @@ #define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_NONE #define HAL_HAVE_BOARD_VOLTAGE 1 +#define HAL_HAVE_SAFETY_SWITCH 1 diff --git a/libraries/AP_HAL/board/linux.h b/libraries/AP_HAL/board/linux.h index b9d3d193bc..09ee40a5a1 100644 --- a/libraries/AP_HAL/board/linux.h +++ b/libraries/AP_HAL/board/linux.h @@ -350,3 +350,4 @@ #endif #define HAL_HAVE_BOARD_VOLTAGE 1 +#define HAL_HAVE_SAFETY_SWITCH 1 diff --git a/libraries/AP_HAL/board/px4.h b/libraries/AP_HAL/board/px4.h index c3b3085b7c..49b29e1b47 100644 --- a/libraries/AP_HAL/board/px4.h +++ b/libraries/AP_HAL/board/px4.h @@ -89,7 +89,9 @@ #define HAL_COMPASS_IST8310_I2C_ADDR 0x0E #define HAL_COMPASS_IST8310_I2C_BUS 1 #define HAL_SERIAL0_BAUD_DEFAULT 460800 + #define HAL_HAVE_BOARD_VOLTAGE 0 +#define HAL_HAVE_SAFETY_SWITCH 0 #define HAL_PX4_HAVE_MTD_SUPPORT 0 #define HAL_PX4_HAVE_PX4IO 0 #endif @@ -110,3 +112,7 @@ #ifndef HAL_PX4_HAVE_PX4IO #define HAL_PX4_HAVE_PX4IO 1 #endif + +#ifndef HAL_HAVE_SAFETY_SWITCH +#define HAL_HAVE_SAFETY_SWITCH 1 +#endif diff --git a/libraries/AP_HAL/board/qurt.h b/libraries/AP_HAL/board/qurt.h index 45c63914bd..a83221f41a 100644 --- a/libraries/AP_HAL/board/qurt.h +++ b/libraries/AP_HAL/board/qurt.h @@ -14,3 +14,4 @@ #define HAL_SERIAL0_BAUD_DEFAULT 115200 #define HAL_HAVE_BOARD_VOLTAGE 1 +#define HAL_HAVE_SAFETY_SWITCH 1 diff --git a/libraries/AP_HAL/board/sitl.h b/libraries/AP_HAL/board/sitl.h index 3fa2cccd34..b5f5d4fb7d 100644 --- a/libraries/AP_HAL/board/sitl.h +++ b/libraries/AP_HAL/board/sitl.h @@ -19,3 +19,4 @@ #define HAL_GPIO_LED_OFF HIGH #define HAL_HAVE_BOARD_VOLTAGE 1 +#define HAL_HAVE_SAFETY_SWITCH 1 diff --git a/libraries/AP_HAL/board/vrbrain.h b/libraries/AP_HAL/board/vrbrain.h index 32c94e0a7c..1ad7d91a9b 100644 --- a/libraries/AP_HAL/board/vrbrain.h +++ b/libraries/AP_HAL/board/vrbrain.h @@ -45,4 +45,5 @@ #define EXTERNAL_LED_MOTOR2 31 // Motor2 LED - AN12 #define HAL_HAVE_BOARD_VOLTAGE 0 +#define HAL_HAVE_SAFETY_SWITCH 1 #define HAL_PX4_HAVE_MTD_SUPPORT 1