AP_ICEngine: added allow_throttle_while_disarmed()

This commit is contained in:
Andrew Tridgell
2022-11-14 11:14:09 +11:00
parent e46fec60e2
commit f366cbbcb4
+5
View File
@@ -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: