From 19a46fff0fbcd5285fb9d406e947e560de423825 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 23 Mar 2023 14:22:45 +1100 Subject: [PATCH] AP_Scripting: added vehicle:reboot() binding --- libraries/AP_Scripting/docs/docs.lua | 4 ++++ libraries/AP_Scripting/generator/description/bindings.desc | 1 + 2 files changed, 5 insertions(+) diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index e872cbf2d5..f869d37544 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -1938,6 +1938,10 @@ function vehicle:nav_script_time_done(param1) end ---@return number|nil function vehicle:nav_script_time() end +-- desc +---@param hold_in_bootloader boolean +function vehicle:reboot(hold_in_bootloader) end + -- desc ---@class onvif onvif = {} diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index c2751a705b..c9584d8e0b 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -276,6 +276,7 @@ singleton AP_Vehicle method nav_scripting_enable boolean uint8_t'skip_check singleton AP_Vehicle method set_velocity_match boolean Vector2f singleton AP_Vehicle method set_land_descent_rate boolean float'skip_check singleton AP_Vehicle method has_ekf_failsafed boolean +singleton AP_Vehicle method reboot void boolean include AP_SerialLED/AP_SerialLED.h singleton AP_SerialLED rename serialLED