From 27dd354304b10007c2529c974a54d626c578d6da Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Thu, 30 Jul 2020 12:20:42 -0300 Subject: [PATCH] AP_Scripting: update to use capacity_remaining_pct() as a bool --- libraries/AP_Scripting/generator/description/bindings.desc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index d0d796cd88..055c10d4bb 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -68,7 +68,7 @@ singleton AP_BattMonitor method voltage_resting_estimate float uint8_t 0 ud->num singleton AP_BattMonitor method current_amps boolean float'Null uint8_t 0 ud->num_instances() singleton AP_BattMonitor method consumed_mah boolean float'Null uint8_t 0 ud->num_instances() singleton AP_BattMonitor method consumed_wh boolean float'Null uint8_t 0 ud->num_instances() -singleton AP_BattMonitor method capacity_remaining_pct uint8_t uint8_t 0 ud->num_instances() +singleton AP_BattMonitor method capacity_remaining_pct boolean uint8_t'Null uint8_t 0 ud->num_instances() singleton AP_BattMonitor method pack_capacity_mah int32_t uint8_t 0 ud->num_instances() singleton AP_BattMonitor method has_failsafed boolean singleton AP_BattMonitor method overpower_detected boolean uint8_t 0 ud->num_instances()