AP_HAL_ChibiOS: eliminate EKF2 from F4 builds not using HAL_MINIMIZE_FEATURES

This commit is contained in:
Henry Wurzburg 2020-04-12 09:04:13 -05:00 committed by Andrew Tridgell
parent 5c399fce41
commit e5319397b4
11 changed files with 32 additions and 6 deletions

View File

@ -159,6 +159,9 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
define HAL_STORAGE_SIZE 15360
define STORAGE_FLASH_PAGE 1
#eliminate EKF2 to save flash size
define HAL_NAVEKF2_AVAILABLE 0
# defaults for battery monitoring
define HAL_BATT_MONITOR_DEFAULT 4
define HAL_BATT_VOLT_PIN 11

View File

@ -1,8 +1,6 @@
# hw definition file for KakuteF4 hardware
# STATUS:
# This port is mostly complete. Main missing feature are OSD,
# dataflash
# MCU class and specific type
MCU STM32F4xx STM32F405xx
@ -154,6 +152,9 @@ define OSD_ENABLED 1
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
#eliminate EKF2 to save flash size
define HAL_NAVEKF2_AVAILABLE 0
# 8 PWM available by default
define BOARD_PWM_COUNT_DEFAULT 8

View File

@ -2,9 +2,6 @@
# tested on the MatekF405-OSD board
# with thanks to betaflight for pinout
# STATUS:
# This port is mostly complete. Main missing feature are OSD,
# dataflash
# MCU class and specific type
MCU STM32F4xx STM32F405xx
@ -182,5 +179,8 @@ define HAL_BATTMON_FUEL_ENABLE 0
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
#eliminate EKF2 to save flash size
define HAL_NAVEKF2_AVAILABLE 0
# reduce max size of embedded params for apj_tool.py
define AP_PARAM_MAX_EMBEDDED_PARAM 1024

View File

@ -140,6 +140,9 @@ define HAL_OSD_TYPE_DEFAULT 1
#To complementary channels work we define this
define STM32_PWM_USE_ADVANCED TRUE
#eliminate EKF2 to save flash size
define HAL_NAVEKF2_AVAILABLE 0
define BOARD_PWM_COUNT_DEFAULT 4
#define CH_DBG_ENABLE_ASSERTS TRUE

View File

@ -136,5 +136,8 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
#eliminate EKF2 to save flash size
define HAL_NAVEKF2_AVAILABLE 0
# reduce max size of embedded params for apj_tool.py
define AP_PARAM_MAX_EMBEDDED_PARAM 1024

View File

@ -108,4 +108,7 @@ define HAL_GPIO_A_LED_PIN 57
#To complementary channels work we define this
define STM32_PWM_USE_ADVANCED TRUE
#eliminate EKF2 to save flash size
define HAL_NAVEKF2_AVAILABLE 0
define BOARD_PWM_COUNT_DEFAULT 6

View File

@ -155,4 +155,6 @@ define HAL_GPIO_C_LED_PIN 2
define HAL_GPIO_LED_ON 0
define HAL_GPIO_LED_OFF 1
#eliminate EKF2 to save flash size
define HAL_NAVEKF2_AVAILABLE 0

View File

@ -154,5 +154,7 @@ define HAL_BATTMON_FUEL_ENABLE 0
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
define HAL_NAVEKF2_AVAILABLE 0
# reduce max size of embedded params for apj_tool.py
define AP_PARAM_MAX_EMBEDDED_PARAM 1024

View File

@ -149,6 +149,9 @@ define HAL_GPIO_A_LED_PIN 41
#To have complementary channels work we define this
define STM32_PWM_USE_ADVANCED TRUE
#eliminate EKF2 to save flash size
define HAL_NAVEKF2_AVAILABLE 0
define BOARD_PWM_COUNT_DEFAULT 6
define OSD_ENABLED 1

View File

@ -134,6 +134,9 @@ SPIDEV dataflash SPI3 DEVID1 FLASH_CS MODE3 32*MHZ 32*MHZ
# enable logging to dataflash
define HAL_LOGGING_DATAFLASH
#eliminate EKF2 to save flash size
define HAL_NAVEKF2_AVAILABLE 0
# 8 PWM available by default
define BOARD_PWM_COUNT_DEFAULT 8
define HAL_WITH_DSP FALSE

View File

@ -160,3 +160,6 @@ define BOARD_PWM_COUNT_DEFAULT 8
define OSD_ENABLED 1
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
#eliminate EKF2 to save flash size
define HAL_NAVEKF2_AVAILABLE 0