diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_bootloader.h b/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_bootloader.h index c3d8aa22c2..205a200230 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_bootloader.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_bootloader.h @@ -15,11 +15,6 @@ #define HAL_GCS_ENABLED 0 #endif -// by default bootloaders don't use INS: -#ifndef AP_INERTIALSENSOR_ENABLED -#define AP_INERTIALSENSOR_ENABLED 0 -#endif - #define HAL_MAX_CAN_PROTOCOL_DRIVERS 0 // bootloader does not save temperature cals etc: diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h b/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h index 68d9a89148..9240bf000a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h @@ -266,9 +266,12 @@ #define RANGEFINDER_MAX_INSTANCES 1 #endif -// by default AP_Periphs don't use INS: -#ifndef AP_INERTIALSENSOR_ENABLED -#define AP_INERTIALSENSOR_ENABLED 0 +#ifndef HAL_ADSB_ENABLED +#define HAL_ADSB_ENABLED 0 +#endif + +#ifndef AP_AIS_ENABLED +#define AP_AIS_ENABLED 0 #endif // no fence by default in AP_Periph: @@ -347,6 +350,7 @@ #define AP_RCPROTOCOL_ENABLED defined(HAL_PERIPH_ENABLE_RCIN) #define AP_RTC_ENABLED defined(HAL_PERIPH_ENABLE_RTC) #define HAL_VISUALODOM_ENABLED defined(HAL_PERIPH_ENABLE_VISUALODOM) +#define AP_INERTIALSENSOR_ENABLED defined(HAL_PERIPH_ENABLE_IMU) #ifndef AP_BOOTLOADER_ALWAYS_ERASE #define AP_BOOTLOADER_ALWAYS_ERASE 1