diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index 299bd2b27e..be65f4da50 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -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