mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-13 10:03:57 -03:00
AP_BattMonitor: add PilotPi support
Adds "pilotpi" board to support https://docs.px4.io/main/en/flight_controller/raspberry_pi_pilotpi.html
This commit is contained in:
parent
946e148688
commit
28acecbeaa
@ -78,6 +78,12 @@
|
||||
# define AP_BATT_VOLTDIVIDER_DEFAULT 10.1f
|
||||
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f
|
||||
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX && (CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PILOTPI)
|
||||
# define AP_BATT_VOLT_PIN 2
|
||||
# define AP_BATT_CURR_PIN -1
|
||||
# define AP_BATT_VOLTDIVIDER_DEFAULT 5.7f
|
||||
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 0.0f
|
||||
|
||||
#else
|
||||
# define AP_BATT_VOLT_PIN -1
|
||||
# define AP_BATT_CURR_PIN -1
|
||||
|
Loading…
Reference in New Issue
Block a user