mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Scripting: add binding for vehicle register_custom_mode
This commit is contained in:
parent
0fd497f203
commit
8bc5f797da
@ -2826,6 +2826,13 @@ function vehicle:is_landing() end
|
||||
---@return boolean -- true on success
|
||||
function vehicle:set_crosstrack_start(new_start_location) end
|
||||
|
||||
-- Register a custom mode. This behaves like guided mode but will report with a custom number and name
|
||||
---@param number integer -- mode number to use, should be over 100
|
||||
---@param full_name string -- Full mode name
|
||||
---@param short_name string -- Short mode name upto 4 characters
|
||||
---@return boolean -- true if successful
|
||||
function vehicle:register_custom_mode(number, full_name, short_name) end
|
||||
|
||||
-- desc
|
||||
onvif = {}
|
||||
|
||||
|
@ -352,6 +352,7 @@ singleton AP_Vehicle method reboot void boolean
|
||||
singleton AP_Vehicle method is_landing boolean
|
||||
singleton AP_Vehicle method is_taking_off boolean
|
||||
singleton AP_Vehicle method set_crosstrack_start boolean Location
|
||||
singleton AP_Vehicle method register_custom_mode boolean uint8_t'skip_check string string
|
||||
|
||||
|
||||
include AP_SerialLED/AP_SerialLED.h
|
||||
|
Loading…
Reference in New Issue
Block a user