2018-07-10 03:27:17 -03:00
|
|
|
# hw definition file for processing by chibios_hwdef.py
|
|
|
|
# for Holybro Pixhawk4 hardware.
|
|
|
|
|
|
|
|
include ../fmuv5/hwdef.dat
|
|
|
|
|
2021-08-06 03:05:49 -03:00
|
|
|
# red and blue LEDs swapped vs fmuv5
|
|
|
|
# red LED marked as B/E
|
|
|
|
undef PB1
|
|
|
|
PB1 LED_RED OUTPUT OPENDRAIN GPIO(92)
|
|
|
|
# blue LED marked as ACT
|
|
|
|
undef PC7
|
|
|
|
PC7 LED_BLUE OUTPUT GPIO(90) HIGH
|
|
|
|
|
2018-12-08 16:56:46 -04:00
|
|
|
# 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
|
|
|
|
|