AP_HAL_ChibiOS: set default type for boards with onboard OSD

This commit is contained in:
vierfuffzig 2018-11-01 11:10:21 +11:00 committed by Andrew Tridgell
parent c2b334eaad
commit d204939cb2
9 changed files with 10 additions and 1 deletions

View File

@ -156,6 +156,7 @@ define HAL_PROBE_EXTERNAL_I2C_BAROS
# OSD support # OSD support
define OSD_ENABLED ENABLED define OSD_ENABLED ENABLED
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
# available storage # available storage

View File

@ -140,6 +140,7 @@ SPIDEV osd SPI3 DEVID4 MAX7456_CS MODE0 10*MHZ 10*MHZ
# setup for OSD # setup for OSD
define OSD_ENABLED ENABLED define OSD_ENABLED ENABLED
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
# 8 PWM available by default # 8 PWM available by default

View File

@ -147,6 +147,7 @@ define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"
# setup for OSD # setup for OSD
define OSD_ENABLED ENABLED define OSD_ENABLED ENABLED
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
define BOARD_PWM_COUNT_DEFAULT 6 define BOARD_PWM_COUNT_DEFAULT 6

View File

@ -177,6 +177,7 @@ define HAL_I2C_INTERNAL_MASK 0
define HAL_COMPASS_AUTO_ROT_DEFAULT 2 define HAL_COMPASS_AUTO_ROT_DEFAULT 2
define OSD_ENABLED ENABLED define OSD_ENABLED ENABLED
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
define BOARD_PWM_COUNT_DEFAULT 9 define BOARD_PWM_COUNT_DEFAULT 9

View File

@ -170,4 +170,5 @@ define BOARD_PWM_COUNT_DEFAULT 8
# setup for OSD # setup for OSD
define OSD_ENABLED ENABLED define OSD_ENABLED ENABLED
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin

View File

@ -134,4 +134,5 @@ define HAL_COMPASS_AUTO_ROT_DEFAULT 2
define HAL_BARO_DEFAULT HAL_BARO_BMP280_SPI define HAL_BARO_DEFAULT HAL_BARO_BMP280_SPI
define OSD_ENABLED ENABLED define OSD_ENABLED ENABLED
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin

View File

@ -123,6 +123,7 @@ define BOARD_RSSI_ANA_PIN 0
define HAL_GPIO_A_LED_PIN 41 define HAL_GPIO_A_LED_PIN 41
define OSD_ENABLED ENABLED define OSD_ENABLED ENABLED
define HAL_OSD_TYPE_DEFAULT 1
#To complementary channels work we define this #To complementary channels work we define this
define STM32_PWM_USE_ADVANCED TRUE define STM32_PWM_USE_ADVANCED TRUE

View File

@ -129,6 +129,7 @@ define BOARD_RSSI_ANA_PIN 0
define HAL_GPIO_A_LED_PIN 57 define HAL_GPIO_A_LED_PIN 57
define OSD_ENABLED ENABLED define OSD_ENABLED ENABLED
define HAL_OSD_TYPE_DEFAULT 1
#To complementary channels work we define this #To complementary channels work we define this
define STM32_PWM_USE_ADVANCED TRUE define STM32_PWM_USE_ADVANCED TRUE

View File

@ -156,4 +156,5 @@ define BOARD_PWM_COUNT_DEFAULT 8
# setup for OSD # setup for OSD
define OSD_ENABLED ENABLED define OSD_ENABLED ENABLED
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin