Skip to content

Commit

Permalink
AP_Scripting: docs.lua updated
Browse files Browse the repository at this point in the history
Added
MotorsMatrix:get_lost_motor()
MotorsMatrix:get_thrust_boost()
esc_telem:get_last_telem_data_ms(esc_index)

SW-61
  • Loading branch information
loki077 committed May 9, 2024
1 parent 3efe78b commit 5641b6e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libraries/AP_Scripting/docs/docs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = {}
Expand Down

0 comments on commit 5641b6e

Please sign in to comment.