HAL_ChibiOS: save flash on boards that are critically low
move to single OSD font on some boards this saves about 12k on these boards. They were also extremely close to overflowing flash, under 2k on some Now that we support having an OSD font on the microSD card (where available) we can reduce built in fonts without a large functionality impact This also disables some less used features on these boards: - generator support - object avoidance path planning - precision landing This will give us some breathing room on these boards
This commit is contained in:
parent
bb28a58bce
commit
eca8cf3414
@ -131,7 +131,12 @@ BARO BMP280 I2C:0:0x76
|
||||
# setup for OSD
|
||||
define OSD_ENABLED 1
|
||||
define HAL_OSD_TYPE_DEFAULT 1
|
||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
|
||||
|
||||
define BOARD_PWM_COUNT_DEFAULT 5
|
||||
define STM32_PWM_USE_ADVANCED TRUE
|
||||
|
||||
# save some flash
|
||||
define GENERATOR_ENABLED 0
|
||||
define AC_OAPATHPLANNER_ENABLED 0
|
||||
define PRECISION_LANDING 0
|
||||
|
@ -146,7 +146,7 @@ BARO BMP280 I2C:0:0x76
|
||||
# setup for OSD
|
||||
define OSD_ENABLED 1
|
||||
define HAL_OSD_TYPE_DEFAULT 1
|
||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
|
||||
|
||||
define BOARD_PWM_COUNT_DEFAULT 10
|
||||
define STM32_PWM_USE_ADVANCED TRUE
|
||||
@ -158,3 +158,8 @@ define STM32_PWM_USE_ADVANCED TRUE
|
||||
# EK2 options (disabled by default)
|
||||
# define HAL_NAVEKF2_AVAILABLE 1
|
||||
# define HAL_NAVEKF3_AVAILABLE 0
|
||||
|
||||
# save some flash
|
||||
define GENERATOR_ENABLED 0
|
||||
define AC_OAPATHPLANNER_ENABLED 0
|
||||
define PRECISION_LANDING 0
|
||||
|
@ -147,7 +147,7 @@ BARO BMP280 I2C:0:0x76
|
||||
# setup for OSD
|
||||
define OSD_ENABLED 1
|
||||
define HAL_OSD_TYPE_DEFAULT 1
|
||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
|
||||
|
||||
define BOARD_PWM_COUNT_DEFAULT 6
|
||||
define STM32_PWM_USE_ADVANCED TRUE
|
||||
@ -164,3 +164,8 @@ define HAL_SPRAYER_ENABLED 0
|
||||
define AP_PARAM_MAX_EMBEDDED_PARAM 1024
|
||||
|
||||
define HAL_MOUNT_ENABLED 0
|
||||
|
||||
# save some flash
|
||||
define GENERATOR_ENABLED 0
|
||||
define AC_OAPATHPLANNER_ENABLED 0
|
||||
define PRECISION_LANDING 0
|
||||
|
@ -176,7 +176,7 @@ define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||
|
||||
define OSD_ENABLED 1
|
||||
define HAL_OSD_TYPE_DEFAULT 1
|
||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
|
||||
|
||||
define BOARD_PWM_COUNT_DEFAULT 10
|
||||
|
||||
@ -193,3 +193,8 @@ define HAL_SPRAYER_ENABLED 0
|
||||
# reduce max size of embedded params for apj_tool.py
|
||||
define AP_PARAM_MAX_EMBEDDED_PARAM 1024
|
||||
define HAL_WITH_DSP FALSE
|
||||
|
||||
# save some flash
|
||||
define GENERATOR_ENABLED 0
|
||||
define AC_OAPATHPLANNER_ENABLED 0
|
||||
define PRECISION_LANDING 0
|
||||
|
@ -148,7 +148,7 @@ define STM32_PWM_USE_ADVANCED TRUE
|
||||
define BOARD_PWM_COUNT_DEFAULT 8
|
||||
|
||||
#font for the osd
|
||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
|
||||
|
||||
# disable SMBUS and fuel battery monitors to save flash
|
||||
define HAL_BATTMON_SMBUS_ENABLE 0
|
||||
@ -160,3 +160,8 @@ define HAL_SPRAYER_ENABLED 0
|
||||
|
||||
# reduce max size of embedded params for apj_tool.py
|
||||
define AP_PARAM_MAX_EMBEDDED_PARAM 1024
|
||||
|
||||
# save some flash
|
||||
define GENERATOR_ENABLED 0
|
||||
define AC_OAPATHPLANNER_ENABLED 0
|
||||
define PRECISION_LANDING 0
|
||||
|
Loading…
Reference in New Issue
Block a user