HAL_ChibiOS: setup PH4 for right voltage scaling

This commit is contained in:
Andrew Tridgell 2018-12-18 11:01:49 +11:00
parent a9982be6fc
commit 2c75272019
2 changed files with 12 additions and 0 deletions

View File

@ -11,3 +11,9 @@ undef AP_FEATURE_SBUS_OUT
# RCInput # RCInput
PI5 TIM8_CH1 TIM8 RCININT PULLUP LOW PI5 TIM8_CH1 TIM8 RCININT PULLUP LOW
# setup for supplied power brick
undef HAL_BATT_VOLT_SCALE
define HAL_BATT_VOLT_SCALE 18.182
undef HAL_BATT_CURR_SCALE
define HAL_BATT_CURR_SCALE 36.364

View File

@ -6,3 +6,9 @@ include ../fmuv5/hwdef.dat
# use ChibiOS based IO firmware to avoid issue with SBUS # use ChibiOS based IO firmware to avoid issue with SBUS
# input. NuttX has no parity checking on UARTs # input. NuttX has no parity checking on UARTs
ROMFS io_firmware.bin Tools/IO_Firmware/fmuv2_IO_ChibiOS.bin ROMFS io_firmware.bin Tools/IO_Firmware/fmuv2_IO_ChibiOS.bin
# setup for supplied power brick
undef HAL_BATT_VOLT_SCALE
define HAL_BATT_VOLT_SCALE 18.182
undef HAL_BATT_CURR_SCALE
define HAL_BATT_CURR_SCALE 36.364