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:
Peter Barker 2024-02-14 11:10:09 +11:00 committed by Peter Barker
parent 9cc194bc8a
commit 40f0001aea
1 changed files with 2 additions and 1 deletions

View File

@ -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