Browse Source

HAL_ChibiOS: setup PH4 for right voltage scaling

master
Andrew Tridgell 6 years ago
parent
commit
735a4b6f18
  1. 6
      libraries/AP_HAL_ChibiOS/hwdef/PH4-mini/hwdef.dat
  2. 6
      libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/hwdef.dat

6
libraries/AP_HAL_ChibiOS/hwdef/PH4-mini/hwdef.dat

@ -31,3 +31,9 @@ PB11 TIM2_CH4 TIM2 PWM(11) GPIO(60) @@ -31,3 +31,9 @@ PB11 TIM2_CH4 TIM2 PWM(11) GPIO(60)
# RCInput on the PPM pin, for all protocols
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

6
libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4/hwdef.dat

@ -3,3 +3,9 @@ @@ -3,3 +3,9 @@
include ../fmuv5/hwdef.dat
# 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

Loading…
Cancel
Save