mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-02 19:53:57 -04:00
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:
parent
aa2c6b8d17
commit
01035b81b3
@ -69,5 +69,4 @@ define GRIPPER_ENABLED 0
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
define AP_BATTMON_SMBUS_ENABLE 0
|
||||
define AP_BATTMON_FUEL_ENABLE 0
|
||||
define AP_OPTICALFLOW_ENABLED 0
|
||||
|
@ -172,5 +172,4 @@ define HAL_PARACHUTE_ENABLED 0
|
||||
include ../include/minimal.inc
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
define AP_BATTMON_SMBUS_ENABLE 0
|
||||
define AP_BATTMON_FUEL_ENABLE 0
|
||||
define AP_OPTICALFLOW_ENABLED 0
|
||||
|
@ -156,7 +156,6 @@ define HAL_WITH_DSP FALSE
|
||||
|
||||
# --------------------- save flash ----------------------
|
||||
define AP_BATTMON_SMBUS_ENABLE 0
|
||||
define AP_BATTMON_FUEL_ENABLE 0
|
||||
define AP_BATT_MONITOR_MAX_INSTANCES 1
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
|
@ -41,7 +41,6 @@ define STM32_PWM_USE_ADVANCED TRUE
|
||||
|
||||
# save some flash
|
||||
define AP_BATTMON_SMBUS_ENABLE 0
|
||||
define AP_BATTMON_FUEL_ENABLE 0
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
define HAL_MOUNT_ENABLED 0
|
||||
|
@ -150,9 +150,8 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||
|
||||
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_FUEL_ENABLE 0
|
||||
|
||||
# disable parachute and sprayer to save flash
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
|
@ -151,9 +151,8 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
|
||||
|
||||
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_FUEL_ENABLE 0
|
||||
|
||||
# disable parachute and sprayer to save flash
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
|
@ -166,7 +166,6 @@ define HAL_BATT2_VOLT_SCALE 11.0
|
||||
define HAL_MINIMIZE_FEATURES 1
|
||||
|
||||
define AP_BATTMON_SMBUS_ENABLE 0
|
||||
define AP_BATTMON_FUEL_ENABLE 0
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
|
||||
|
@ -177,7 +177,6 @@ define HAL_WITH_DSP FALSE
|
||||
|
||||
# --------------------- save flash ----------------------
|
||||
define AP_BATTMON_SMBUS_ENABLE 0
|
||||
define AP_BATTMON_FUEL_ENABLE 0
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
define HAL_GENERATOR_ENABLED 0
|
||||
|
@ -179,9 +179,8 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
|
||||
|
||||
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_FUEL_ENABLE 0
|
||||
|
||||
# disable parachute and sprayer to save flash
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
|
@ -157,9 +157,8 @@ define OSD_ENABLED 1
|
||||
define HAL_OSD_TYPE_DEFAULT 1
|
||||
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_FUEL_ENABLE 0
|
||||
|
||||
# disable parachute and sprayer to save flash
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
|
@ -127,9 +127,8 @@ define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||
define HAL_I2C_INTERNAL_MASK 0
|
||||
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_FUEL_ENABLE 0
|
||||
|
||||
# disable parachute and sprayer to save flash
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
|
@ -125,9 +125,8 @@ define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||
define HAL_I2C_INTERNAL_MASK 0
|
||||
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_FUEL_ENABLE 0
|
||||
|
||||
# disable parachute and sprayer to save flash
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
|
@ -147,9 +147,8 @@ define STM32_PWM_USE_ADVANCED TRUE
|
||||
#font for the osd
|
||||
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_FUEL_ENABLE 0
|
||||
|
||||
# disable parachute and sprayer to save flash
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
|
@ -19,9 +19,8 @@ define HAL_OS_FATFS_IO 1
|
||||
define HAL_BOARD_LOG_DIRECTORY "/APM/LOGS"
|
||||
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_FUEL_ENABLE 0
|
||||
|
||||
# disable parachute and sprayer to save flash
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
|
@ -74,7 +74,6 @@ define GRIPPER_ENABLED 0
|
||||
define HAL_ADSB_SAGETECH_ENABLED 0
|
||||
define HAL_ADSB_UAVIONIX_MAVLINK_ENABLED 0
|
||||
define AP_AIS_ENABLED 0
|
||||
define AP_BATTMON_FUEL_ENABLE 0
|
||||
define HAL_BATTMON_INA2XX_ENABLED 0
|
||||
define AP_BATTMON_SMBUS_ENABLE 0
|
||||
define HAL_CRSF_TELEM_ENABLED 0
|
||||
|
Loading…
Reference in New Issue
Block a user