From 887e4713e64c0a1f082faf8a3097d3549312c5ee Mon Sep 17 00:00:00 2001 From: Henry Wurzburg Date: Thu, 30 May 2024 15:51:41 -0500 Subject: [PATCH] AP_HAL_ChibiOS:remove fetaures to allow boards to build --- libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat | 7 ++++++- .../AP_HAL_ChibiOS/hwdef/MicoAir405v2/hwdef.dat | 15 +-------------- .../AP_HAL_ChibiOS/hwdef/OMNIBUSF7V2/hwdef.dat | 3 +++ 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat index b0d9ea996a..281f1ad3b4 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat @@ -144,11 +144,16 @@ define HAL_PARACHUTE_ENABLED 0 # save FLASH, but leave above when flash issue is fixed include ../include/minimize_fpv_osd.inc include ../include/no_bootloader_DFU.inc +#only enable BMP280 Baro +define AP_BARO_BACKEND_DEFAULT_ENABLED 0 +undef define AP_BARO_BMP280_ENABLED +define AP_BARO_BMP280_ENABLED 1 # disable SMBUS battery monitors to save flash undef AP_BATTERY_SMBUS_ENABLED define AP_BATTERY_SMBUS_ENABLED 0 + # setup for OSD define HAL_OSD_TYPE_DEFAULT 1 ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin @@ -159,6 +164,6 @@ define HAL_WITH_MSP_DISPLAYPORT 1 undef HAL_MSP_ENABLED define HAL_MSP_ENABLED 1 -# need to probe external baros even 'though we're minimised: +# need to probe external baros even 'though we're minimised to allow custom build options: undef AP_BARO_PROBE_EXTERNAL_I2C_BUSES define AP_BARO_PROBE_EXTERNAL_I2C_BUSES 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MicoAir405v2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MicoAir405v2/hwdef.dat index 0b102a9a56..211f0122da 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MicoAir405v2/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MicoAir405v2/hwdef.dat @@ -155,17 +155,4 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin define HAL_FRAME_TYPE_DEFAULT 12 # reduce flash usage -define HAL_MOUNT_ENABLED 0 -define HAL_SPRAYER_ENABLED 0 -define HAL_GENERATOR_ENABLED 0 -define HAL_VISUALODOM_ENABLED 0 -define AP_WINCH_ENABLED 0 -define AP_BEACON_ENABLED 0 -define AP_GRIPPER_ENABLED 0 -define AP_ICENGINE_ENABLED 0 -define AP_BARO_PROBE_EXTERNAL_I2C_BUSES 0 -define OFFBOARD_GUIDED 0 -define QAUTOTUNE_ENABLED 0 -define EK3_FEATURE_EXTERNAL_NAV 0 -define AP_MISSION_NAV_PAYLOAD_PLACE_ENABLED 0 -define AC_PAYLOAD_PLACE_ENABLED 0 +include ../include/minimize_fpv_osd.inc diff --git a/libraries/AP_HAL_ChibiOS/hwdef/OMNIBUSF7V2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/OMNIBUSF7V2/hwdef.dat index d22ae701fd..0f13a42fda 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/OMNIBUSF7V2/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/OMNIBUSF7V2/hwdef.dat @@ -129,6 +129,9 @@ define HAL_PARACHUTE_ENABLED 0 # save FLASH, but leave above when flash issue is fixed include ../include/minimize_fpv_osd.inc +#not useable for quadplane +define HAL_QUADPLANE_ENABLED 0 + # disable SMBUS monitors to save flash undef AP_BATTERY_SMBUS_ENABLED define AP_BATTERY_SMBUS_ENABLED 0