mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: added arm_force() and baro get_altitude_difference()
This commit is contained in:
parent
6a1d09959b
commit
ebad1631d7
|
@ -2114,6 +2114,11 @@ function baro:get_altitude() end
|
|||
---@return boolean
|
||||
function baro:healthy(instance) end
|
||||
|
||||
-- get altitude difference from a base pressure and current pressure
|
||||
---@param base_pressure -- first reference pressure in Pa
|
||||
---@param pressure -- 2nd pressure in Pa
|
||||
---@return number -- altitude difference in meters
|
||||
function baro:get_altitude_difference(base_pressure,pressure) end
|
||||
|
||||
-- Serial ports
|
||||
serial = {}
|
||||
|
@ -3200,6 +3205,10 @@ function arming:get_aux_auth_id() end
|
|||
---@return boolean -- true if armed successfully
|
||||
function arming:arm() end
|
||||
|
||||
-- force arm the vehicle
|
||||
---@return boolean -- true if armed
|
||||
function arming:arm_force() end
|
||||
|
||||
-- Returns a true if vehicle is currently armed.
|
||||
---@return boolean -- true if armed
|
||||
function arming:is_armed() end
|
||||
|
|
|
@ -70,6 +70,7 @@ singleton AP_Arming method disarm boolean AP_Arming::Method::SCRIPTING'literal
|
|||
singleton AP_Arming method is_armed boolean
|
||||
singleton AP_Arming method pre_arm_checks boolean false'literal
|
||||
singleton AP_Arming method arm boolean AP_Arming::Method::SCRIPTING'literal
|
||||
singleton AP_Arming method arm_force boolean AP_Arming::Method::SCRIPTING'literal
|
||||
singleton AP_Arming method get_aux_auth_id boolean uint8_t'Null
|
||||
singleton AP_Arming method set_aux_auth_passed void uint8_t'skip_check
|
||||
singleton AP_Arming method set_aux_auth_failed void uint8_t'skip_check string
|
||||
|
@ -418,6 +419,7 @@ singleton AP_Baro method get_temperature float
|
|||
singleton AP_Baro method get_external_temperature float
|
||||
singleton AP_Baro method get_altitude float
|
||||
singleton AP_Baro method healthy boolean uint8_t'skip_check
|
||||
singleton AP_Baro method get_altitude_difference float float'skip_check float'skip_check
|
||||
|
||||
include AP_OpticalFlow/AP_OpticalFlow.h
|
||||
singleton AP_OpticalFlow depends AP_OPTICALFLOW_ENABLED
|
||||
|
|
Loading…
Reference in New Issue