mirror of https://github.com/ArduPilot/ardupilot
AP_BattMonitor: fix compilation when scripting in but scripted-battery out
Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
This commit is contained in:
parent
9cc194bc8a
commit
40f0001aea
|
@ -77,7 +77,7 @@ singleton AP_Arming method set_aux_auth_failed void uint8_t'skip_check string
|
|||
include AP_BattMonitor/AP_BattMonitor.h
|
||||
|
||||
include AP_BattMonitor/AP_BattMonitor_Scripting.h
|
||||
userdata BattMonitorScript_State depends AP_BATTERY_SCRIPTING_ENABLED == 1
|
||||
userdata BattMonitorScript_State depends AP_BATTERY_SCRIPTING_ENABLED
|
||||
userdata BattMonitorScript_State field healthy boolean write
|
||||
userdata BattMonitorScript_State field voltage float'skip_check write
|
||||
userdata BattMonitorScript_State field cell_count uint8_t'skip_check write
|
||||
|
@ -107,6 +107,7 @@ singleton AP_BattMonitor method get_cycle_count boolean uint8_t 0 ud->num_instan
|
|||
singleton AP_BattMonitor method reset_remaining boolean uint8_t 0 ud->num_instances() float 0 100
|
||||
singleton AP_BattMonitor method get_cell_voltage boolean uint8_t'skip_check uint8_t'skip_check float'Null
|
||||
singleton AP_BattMonitor method handle_scripting boolean uint8_t'skip_check BattMonitorScript_State
|
||||
singleton AP_BattMonitor method handle_scripting depends AP_BATTERY_SCRIPTING_ENABLED
|
||||
|
||||
include AP_GPS/AP_GPS.h
|
||||
|
||||
|
|
Loading…
Reference in New Issue