HAL_ChibiOS: setup PH4 for right voltage scaling

This commit is contained in:
Andrew Tridgell 2018-12-09 07:42:59 +11:00
parent a23c174e24
commit 80b9cf09de
2 changed files with 12 additions and 0 deletions

View File

@ -11,3 +11,9 @@ undef AP_FEATURE_SBUS_OUT
# RCInput
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
# input. NuttX has no parity checking on UARTs
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