From 5641b6ec47116ed0b41b22b0e61172b8e924d427 Mon Sep 17 00:00:00 2001 From: Lokesh-Ramina Date: Wed, 8 May 2024 20:41:32 -0700 Subject: [PATCH] AP_Scripting: docs.lua updated Added MotorsMatrix:get_lost_motor() MotorsMatrix:get_thrust_boost() esc_telem:get_last_telem_data_ms(esc_index) SW-61 --- libraries/AP_Scripting/docs/docs.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index 044314b9c5..93d3fcaca6 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -1048,6 +1048,13 @@ function MotorsMatrix:add_motor_raw(motor_num, roll_factor, pitch_factor, yaw_fa ---@return boolean function MotorsMatrix:init(expected_num_motors) end +-- number of motor that has failed. Need to be checked if get_thrust_boost returns True +---@return integer +function MotorsMatrix:get_lost_motor() end + +-- Return True if it has lost any motor +---@return boolean +function MotorsMatrix:get_thrust_boost() end -- desc ---@class quadplane @@ -1237,6 +1244,11 @@ function esc_telem:update_rpm(esc_index, rpm, error_rate) end ---@param param2 scale factor function esc_telem:set_rpm_scale(esc_index, scale_factor) end +-- get the timestamp of last telemetry data for an ESC +---@param esc_index integer +---@return uint32_t_ud +function esc_telem:get_last_telem_data_ms(esc_index) end + -- desc ---@class optical_flow optical_flow = {}