mirror of https://github.com/ArduPilot/ardupilot
add methods (enabled, healthy, get_raw_airspeed) from #20499 PR
This commit is contained in:
parent
889b0dd03f
commit
dd4ad8a993
|
@ -3212,11 +3212,26 @@ function battery:get_cell_voltage(instance, cell) end
|
|||
-- The Airspeed library provides access to airspeed sensors information.
|
||||
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
|
||||
---@param instance integer
|
||||
---@return number -- airspeed in m/s -1 if invalid.
|
||||
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.
|
||||
arming = {}
|
||||
|
||||
|
|
|
@ -65,7 +65,10 @@ singleton AP_AHRS method get_quaternion boolean Quaternion'Null
|
|||
include AP_Airspeed/AP_Airspeed.h
|
||||
singleton AP_Airspeed depends AP_AIRSPEED_ENABLED
|
||||
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_raw_airspeed float uint8_t'skip_check
|
||||
|
||||
include AP_Arming/AP_Arming.h
|
||||
|
||||
|
|
Loading…
Reference in New Issue