mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
hwdef: do not remove OSD in common minimized boards
This commit is contained in:
parent
1c07c875d6
commit
c29948c69a
@ -144,15 +144,13 @@ define STM32_PWM_USE_ADVANCED TRUE
|
|||||||
define HAL_PARACHUTE_ENABLED 0
|
define HAL_PARACHUTE_ENABLED 0
|
||||||
|
|
||||||
# save FLASH, but leave above when flash issue is fixed
|
# 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
|
# disable SMBUS battery monitors to save flash
|
||||||
undef AP_BATTERY_SMBUS_ENABLED
|
undef AP_BATTERY_SMBUS_ENABLED
|
||||||
define AP_BATTERY_SMBUS_ENABLED 0
|
define AP_BATTERY_SMBUS_ENABLED 0
|
||||||
|
|
||||||
# setup for OSD
|
# setup for OSD
|
||||||
undef OSD_ENABLED # minimize_features.inc removes this
|
|
||||||
define OSD_ENABLED 1
|
|
||||||
define HAL_OSD_TYPE_DEFAULT 1
|
define HAL_OSD_TYPE_DEFAULT 1
|
||||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
|||||||
define HAL_PARACHUTE_ENABLED 0
|
define HAL_PARACHUTE_ENABLED 0
|
||||||
|
|
||||||
# save FLASH, but leave above when flash issue is fixed
|
# 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
|
# disable SMBUS monitors to save flash
|
||||||
undef AP_BATTERY_SMBUS_ENABLED
|
undef AP_BATTERY_SMBUS_ENABLED
|
||||||
@ -136,7 +136,5 @@ define AP_BATTERY_SMBUS_ENABLED 0
|
|||||||
# one baro
|
# one baro
|
||||||
BARO BMP280 SPI:bmp280
|
BARO BMP280 SPI:bmp280
|
||||||
|
|
||||||
undef OSD_ENABLED # minimize_features.inc removes this
|
|
||||||
define OSD_ENABLED 1
|
|
||||||
define HAL_OSD_TYPE_DEFAULT 1
|
define HAL_OSD_TYPE_DEFAULT 1
|
||||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||||
|
@ -50,12 +50,6 @@ define HAL_SPEKTRUM_TELEM_ENABLED 0
|
|||||||
# various structures increase the flash size when using >16 servos:
|
# various structures increase the flash size when using >16 servos:
|
||||||
define NUM_SERVO_CHANNELS 16
|
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:
|
# no Winch if minimized:
|
||||||
define AP_WINCH_ENABLED 0
|
define AP_WINCH_ENABLED 0
|
||||||
|
|
||||||
|
@ -1 +1,7 @@
|
|||||||
include minimize_common.inc
|
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
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
include minimize_common.inc
|
Loading…
Reference in New Issue
Block a user