AP_ICEngine: added allow_throttle_while_disarmed()

This commit is contained in:
Andrew Tridgell 2022-11-10 13:51:18 +11:00
parent e46fec60e2
commit f366cbbcb4

View File

@ -55,6 +55,11 @@ public:
// update min throttle for idle governor // update min throttle for idle governor
void update_idle_governor(int8_t &min_throttle); 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; } static AP_ICEngine *get_singleton() { return _singleton; }
private: private: