From 8bf3f5e347cf40ab38bac2b3b13ef74e52cd4cca Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sun, 15 Sep 2024 01:04:26 +0100 Subject: [PATCH] AP_Vehicle: add `register_custom_mode` --- libraries/AP_Vehicle/AP_Vehicle.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index 9b88404739..ffa70eec6d 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -247,6 +247,9 @@ public: // returns true on success and control_value is set to a value in the range -1 to +1 virtual bool get_control_output(AP_Vehicle::ControlOutput control_output, float &control_value) { return false; } + // Register a custom mode with given number and names + virtual bool register_custom_mode(const uint8_t number, const char* full_name, const char* short_name) { return false; } + #endif // AP_SCRIPTING_ENABLED // returns true if vehicle is in the process of landing