HAL_ChibiOS: define BOARD_RSSI_ANA_PIN to simpify tuning

This commit is contained in:
Alexander Malishev 2018-07-16 00:31:48 +04:00 committed by Andrew Tridgell
parent e04f438ce3
commit 4342dae065
2 changed files with 11 additions and 0 deletions

View File

@ -158,11 +158,17 @@ define HAL_BOARD_LOG_DIRECTORY "/APM/LOGS"
define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"
define HAL_DATAFLASH_FILE_BUFSIZE 8
define HAL_DATAFLASH_MAV_BUFSIZE 2
# define default battery setup
define HAL_BATT_VOLT_PIN 10
define HAL_BATT_CURR_PIN 11
define HAL_BATT_VOLT_SCALE 11
define HAL_BATT_CURR_SCALE 31.7
#analog rssi pin (also could be used as analog airspeed input)
# PC5 - ADC12_CH15
define BOARD_RSSI_ANA_PIN 15
# no built-in compass, but probe the i2c bus for all possible
# external compass types
define ALLOW_ARM_NO_COMPASS

View File

@ -122,6 +122,11 @@ define HAL_BATT_CURR_PIN 11
define HAL_BATT_VOLT_SCALE 11
define HAL_BATT_CURR_SCALE 18.2
#analog rssi pin (also could be used as analog airspeed input)
# PA0 - ADC123_CH0
define BOARD_RSSI_ANA_PIN 0
define HAL_GPIO_A_LED_PIN 57
define OSD_ENABLED ENABLED