AP_Vehicle: implement is_landing and is_taking_off for use by lua

This commit is contained in:
Tatsuya Yamaguchi 2023-05-19 11:55:07 +09:00 committed by Tom Pittenger
parent 5a67ff6479
commit 797cb9c8e2
1 changed files with 6 additions and 0 deletions

View File

@ -214,6 +214,12 @@ 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; }
// returns true if vehicle is in the process of landing
virtual bool is_landing() const { return false; }
// returns true if vehicle is in the process of taking off
virtual bool is_taking_off() const { return false; }
#endif // AP_SCRIPTING_ENABLED
// zeroing the RC outputs can prevent unwanted motor movement: