add methods (enabled, healthy, get_raw_airspeed) from #20499 PR

This commit is contained in:
Alexis 2024-09-12 17:32:38 +03:00
parent 889b0dd03f
commit dd4ad8a993
2 changed files with 18 additions and 0 deletions

View File

@ -3212,11 +3212,26 @@ function battery:get_cell_voltage(instance, cell) end
-- The Airspeed library provides access to airspeed sensors information. -- The Airspeed library provides access to airspeed sensors information.
airspeed = {} airspeed = {}
-- desc
---@param instance integer
---@return boolean
function airspeed:enabled(instance)) end
-- desc
---@param instance integer
---@return boolean
function airspeed:healthy(instance)) end
-- Get airspeed for the given sensor instance -- Get airspeed for the given sensor instance
---@param instance integer ---@param instance integer
---@return number -- airspeed in m/s -1 if invalid. ---@return number -- airspeed in m/s -1 if invalid.
function airspeed:get_airspeed(instance) end function airspeed:get_airspeed(instance) end
-- desc
---@param instance integer
---@return number -- raw_airspeed in m/s -1 if invalid.
function airspeed:get_raw_airspeed(instance)) end
-- The Arming library provides access to arming status and commands. -- The Arming library provides access to arming status and commands.
arming = {} arming = {}

View File

@ -65,7 +65,10 @@ singleton AP_AHRS method get_quaternion boolean Quaternion'Null
include AP_Airspeed/AP_Airspeed.h include AP_Airspeed/AP_Airspeed.h
singleton AP_Airspeed depends AP_AIRSPEED_ENABLED singleton AP_Airspeed depends AP_AIRSPEED_ENABLED
singleton AP_Airspeed rename airspeed singleton AP_Airspeed rename airspeed
singleton AP_Airspeed method enabled boolean uint8_t'skip_check
singleton AP_Airspeed method healthy boolean uint8_t'skip_check
singleton AP_Airspeed method get_airspeed float uint8_t'skip_check singleton AP_Airspeed method get_airspeed float uint8_t'skip_check
singleton AP_Airspeed method get_raw_airspeed float uint8_t'skip_check
include AP_Arming/AP_Arming.h include AP_Arming/AP_Arming.h