From f366cbbcb43f6f37b640f38a378daa4e1d613f37 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Nov 2022 13:51:18 +1100 Subject: [PATCH] AP_ICEngine: added allow_throttle_while_disarmed() --- libraries/AP_ICEngine/AP_ICEngine.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_ICEngine/AP_ICEngine.h b/libraries/AP_ICEngine/AP_ICEngine.h index f5a1818f22..d1dfd90747 100644 --- a/libraries/AP_ICEngine/AP_ICEngine.h +++ b/libraries/AP_ICEngine/AP_ICEngine.h @@ -55,6 +55,11 @@ public: // update min throttle for idle governor void update_idle_governor(int8_t &min_throttle); + // do we have throttle while disarmed enabled? + bool allow_throttle_while_disarmed(void) const { + return enable && option_set(Options::THROTTLE_WHILE_DISARMED); + } + static AP_ICEngine *get_singleton() { return _singleton; } private: