AP_HAL_ChibiOS: Add macros for Fuel options

Adds macros for FuelFlow, FuelLevel_PWM, and FuelLevel_Analog. The features are enabled on all 2MB boards.
This commit is contained in:
TunaLobster 2022-06-28 12:00:17 -05:00 committed by Andrew Tridgell
parent aa2c6b8d17
commit 01035b81b3
15 changed files with 8 additions and 23 deletions

View File

@ -69,5 +69,4 @@ define GRIPPER_ENABLED 0
define HAL_PARACHUTE_ENABLED 0 define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0 define HAL_SPRAYER_ENABLED 0
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
define AP_OPTICALFLOW_ENABLED 0 define AP_OPTICALFLOW_ENABLED 0

View File

@ -172,5 +172,4 @@ define HAL_PARACHUTE_ENABLED 0
include ../include/minimal.inc include ../include/minimal.inc
define HAL_SPRAYER_ENABLED 0 define HAL_SPRAYER_ENABLED 0
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
define AP_OPTICALFLOW_ENABLED 0 define AP_OPTICALFLOW_ENABLED 0

View File

@ -156,7 +156,6 @@ define HAL_WITH_DSP FALSE
# --------------------- save flash ---------------------- # --------------------- save flash ----------------------
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
define AP_BATT_MONITOR_MAX_INSTANCES 1 define AP_BATT_MONITOR_MAX_INSTANCES 1
define HAL_PARACHUTE_ENABLED 0 define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0 define HAL_SPRAYER_ENABLED 0

View File

@ -41,7 +41,6 @@ define STM32_PWM_USE_ADVANCED TRUE
# save some flash # save some flash
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
define HAL_PARACHUTE_ENABLED 0 define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0 define HAL_SPRAYER_ENABLED 0
define HAL_MOUNT_ENABLED 0 define HAL_MOUNT_ENABLED 0

View File

@ -150,9 +150,8 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
define STM32_PWM_USE_ADVANCED TRUE define STM32_PWM_USE_ADVANCED TRUE
# disable SMBUS and fuel battery monitors to save flash # disable SMBUS battery monitors to save flash
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
# disable parachute and sprayer to save flash # disable parachute and sprayer to save flash
define HAL_PARACHUTE_ENABLED 0 define HAL_PARACHUTE_ENABLED 0

View File

@ -151,9 +151,8 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
define STM32_PWM_USE_ADVANCED TRUE define STM32_PWM_USE_ADVANCED TRUE
# disable SMBUS and fuel battery monitors to save flash # disable SMBUS battery monitors to save flash
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
# disable parachute and sprayer to save flash # disable parachute and sprayer to save flash
define HAL_PARACHUTE_ENABLED 0 define HAL_PARACHUTE_ENABLED 0

View File

@ -166,7 +166,6 @@ define HAL_BATT2_VOLT_SCALE 11.0
define HAL_MINIMIZE_FEATURES 1 define HAL_MINIMIZE_FEATURES 1
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
define HAL_PARACHUTE_ENABLED 0 define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0 define HAL_SPRAYER_ENABLED 0

View File

@ -177,7 +177,6 @@ define HAL_WITH_DSP FALSE
# --------------------- save flash ---------------------- # --------------------- save flash ----------------------
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
define HAL_PARACHUTE_ENABLED 0 define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0 define HAL_SPRAYER_ENABLED 0
define HAL_GENERATOR_ENABLED 0 define HAL_GENERATOR_ENABLED 0

View File

@ -179,9 +179,8 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
define STM32_PWM_USE_ADVANCED TRUE define STM32_PWM_USE_ADVANCED TRUE
# disable SMBUS and fuel battery monitors to save flash # disable SMBUS battery monitors to save flash
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
# disable parachute and sprayer to save flash # disable parachute and sprayer to save flash
define HAL_PARACHUTE_ENABLED 0 define HAL_PARACHUTE_ENABLED 0

View File

@ -157,9 +157,8 @@ define OSD_ENABLED 1
define HAL_OSD_TYPE_DEFAULT 1 define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
# disable SMBUS and fuel battery monitors to save flash # disable SMBUS battery monitors to save flash
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
# disable parachute and sprayer to save flash # disable parachute and sprayer to save flash
define HAL_PARACHUTE_ENABLED 0 define HAL_PARACHUTE_ENABLED 0

View File

@ -127,9 +127,8 @@ define HAL_PROBE_EXTERNAL_I2C_COMPASSES
define HAL_I2C_INTERNAL_MASK 0 define HAL_I2C_INTERNAL_MASK 0
define HAL_COMPASS_AUTO_ROT_DEFAULT 2 define HAL_COMPASS_AUTO_ROT_DEFAULT 2
# disable SMBUS and fuel battery monitors to save flash # disable SMBUS monitors to save flash
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
# disable parachute and sprayer to save flash # disable parachute and sprayer to save flash
define HAL_PARACHUTE_ENABLED 0 define HAL_PARACHUTE_ENABLED 0

View File

@ -125,9 +125,8 @@ define HAL_PROBE_EXTERNAL_I2C_COMPASSES
define HAL_I2C_INTERNAL_MASK 0 define HAL_I2C_INTERNAL_MASK 0
define HAL_COMPASS_AUTO_ROT_DEFAULT 2 define HAL_COMPASS_AUTO_ROT_DEFAULT 2
# disable SMBUS and fuel battery monitors to save flash # disable SMBUS monitors to save flash
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
# disable parachute and sprayer to save flash # disable parachute and sprayer to save flash
define HAL_PARACHUTE_ENABLED 0 define HAL_PARACHUTE_ENABLED 0

View File

@ -147,9 +147,8 @@ define STM32_PWM_USE_ADVANCED TRUE
#font for the osd #font for the osd
ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
# disable SMBUS and fuel battery monitors to save flash # disable SMBUS monitors to save flash
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
# disable parachute and sprayer to save flash # disable parachute and sprayer to save flash
define HAL_PARACHUTE_ENABLED 0 define HAL_PARACHUTE_ENABLED 0

View File

@ -19,9 +19,8 @@ define HAL_OS_FATFS_IO 1
define HAL_BOARD_LOG_DIRECTORY "/APM/LOGS" define HAL_BOARD_LOG_DIRECTORY "/APM/LOGS"
define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN" define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"
# disable SMBUS and fuel battery monitors to save flash # disable SMBUS monitors to save flash
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
# disable parachute and sprayer to save flash # disable parachute and sprayer to save flash
define HAL_PARACHUTE_ENABLED 0 define HAL_PARACHUTE_ENABLED 0

View File

@ -74,7 +74,6 @@ define GRIPPER_ENABLED 0
define HAL_ADSB_SAGETECH_ENABLED 0 define HAL_ADSB_SAGETECH_ENABLED 0
define HAL_ADSB_UAVIONIX_MAVLINK_ENABLED 0 define HAL_ADSB_UAVIONIX_MAVLINK_ENABLED 0
define AP_AIS_ENABLED 0 define AP_AIS_ENABLED 0
define AP_BATTMON_FUEL_ENABLE 0
define HAL_BATTMON_INA2XX_ENABLED 0 define HAL_BATTMON_INA2XX_ENABLED 0
define AP_BATTMON_SMBUS_ENABLE 0 define AP_BATTMON_SMBUS_ENABLE 0
define HAL_CRSF_TELEM_ENABLED 0 define HAL_CRSF_TELEM_ENABLED 0