hwdef: do not remove OSD in common minimized boards

This commit is contained in:
Peter Barker 2023-07-17 18:35:55 +10:00 committed by Peter Barker
parent 1c07c875d6
commit c29948c69a
5 changed files with 9 additions and 12 deletions

View File

@ -144,15 +144,13 @@ define STM32_PWM_USE_ADVANCED TRUE
define HAL_PARACHUTE_ENABLED 0
# save FLASH, but leave above when flash issue is fixed
include ../include/minimize_features.inc
include ../include/minimize_fpv_osd.inc
# disable SMBUS battery monitors to save flash
undef AP_BATTERY_SMBUS_ENABLED
define AP_BATTERY_SMBUS_ENABLED 0
# setup for OSD
undef OSD_ENABLED # minimize_features.inc removes this
define OSD_ENABLED 1
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin

View File

@ -127,7 +127,7 @@ define HAL_COMPASS_AUTO_ROT_DEFAULT 2
define HAL_PARACHUTE_ENABLED 0
# save FLASH, but leave above when flash issue is fixed
include ../include/minimize_features.inc
include ../include/minimize_fpv_osd.inc
# disable SMBUS monitors to save flash
undef AP_BATTERY_SMBUS_ENABLED
@ -136,7 +136,5 @@ define AP_BATTERY_SMBUS_ENABLED 0
# one baro
BARO BMP280 SPI:bmp280
undef OSD_ENABLED # minimize_features.inc removes this
define OSD_ENABLED 1
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin

View File

@ -50,12 +50,6 @@ define HAL_SPEKTRUM_TELEM_ENABLED 0
# various structures increase the flash size when using >16 servos:
define NUM_SERVO_CHANNELS 16
# remove various OSD features by default:
define OSD_ENABLED 0
define HAL_PLUSCODE_ENABLE 0
define HAL_OSD_SIDEBAR_ENABLE 0
define OSD_PARAM_ENABLED 0
# no Winch if minimized:
define AP_WINCH_ENABLED 0

View File

@ -1 +1,7 @@
include minimize_common.inc
# remove various OSD features by default:
define OSD_ENABLED 0
define HAL_PLUSCODE_ENABLE 0
define HAL_OSD_SIDEBAR_ENABLE 0
define OSD_PARAM_ENABLED 0

View File

@ -0,0 +1 @@
include minimize_common.inc