AP_Scripting: add binding for vehicle register_custom_mode

This commit is contained in:
Iampete1 2024-09-15 01:04:14 +01:00 committed by Randy Mackay
parent 0fd497f203
commit 8bc5f797da
2 changed files with 8 additions and 0 deletions

View File

@ -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 = {}

View File

@ -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