From 56773f09b422ece063b3531213e32618d04b1319 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 17 Jul 2024 18:02:51 +1000 Subject: [PATCH] AP_Scripting: docs for get_resistance --- libraries/AP_Scripting/docs/docs.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index afd113d5f4c01..5fe0593f11139 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -3147,6 +3147,11 @@ function battery:current_amps(instance) end ---@return number -- resting voltage function battery:voltage_resting_estimate(instance) end +-- Returns the estimated internal battery resistance in Ohms +---@param instance integer -- battery instance +---@return number -- estimated internal resistance in Ohms +function battery:get_resistance(instance) end + -- Returns the voltage of the selected battery instance. ---@param instance integer -- battery instance ---@return number -- voltage