diff --git a/libraries/AP_ICEngine/AP_ICEngine.h b/libraries/AP_ICEngine/AP_ICEngine.h index f5a1818f227..d1dfd90747c 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: