HAL_ChibiOS: enable CAN on FMUv5

and fixed voltage scaling defaults
This commit is contained in:
Andrew Tridgell 2018-05-30 19:50:45 +10:00
parent 2087354939
commit 010cd71ab6

View File

@ -180,10 +180,18 @@ PB0 RSSI_IN ADC1 SCALE(1)
PC0 VDD_5V_SENS ADC1 SCALE(2)
PC1 SCALED_V3V3 ADC1 SCALE(2)
# setup scaling defaults for PixHackV5 power brick
define HAL_BATT_VOLT_SCALE 18.0
define HAL_BATT_CURR_SCALE 24.0
define HAL_BATT_VOLT_PIN 0
define HAL_BATT_CURR_PIN 1
define HAL_BATT_VOLT_SCALE 10.1
define HAL_BATT_CURR_SCALE 17.0
# CAN bus
PI9 CAN1_RX CAN1
PH13 CAN1_TX CAN1
PB12 CAN2_RX CAN2
PB13 CAN2_TX CAN2
# GPIOs
PA7 HEATER_EN OUTPUT LOW GPIO(80)