mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Scripting: add and use AP_BATTERY_ENABLED
This commit is contained in:
parent
a8bc7761d3
commit
bed976a8fc
@ -90,7 +90,7 @@ userdata BattMonitorScript_State field consumed_wh float'skip_check write
|
||||
userdata BattMonitorScript_State field temperature float'skip_check write
|
||||
|
||||
singleton AP_BattMonitor rename battery
|
||||
singleton AP_BattMonitor depends (!defined(HAL_BUILD_AP_PERIPH) || defined(HAL_PERIPH_ENABLE_BATTERY))
|
||||
singleton AP_BattMonitor depends AP_BATTERY_ENABLED
|
||||
singleton AP_BattMonitor method num_instances uint8_t
|
||||
singleton AP_BattMonitor method healthy boolean uint8_t 0 ud->num_instances()
|
||||
singleton AP_BattMonitor method voltage float uint8_t 0 ud->num_instances()
|
||||
|
Loading…
Reference in New Issue
Block a user