Copter: is_landing/is_taking_off not to req scripting

This commit is contained in:
Tom Pittenger 2023-06-26 11:07:45 -07:00 committed by Tom Pittenger
parent 606ef1b269
commit a88c3a08b0
2 changed files with 3 additions and 3 deletions

View File

@ -445,6 +445,8 @@ bool Copter::has_ekf_failsafed() const
return failsafe.ekf;
}
#endif // AP_SCRIPTING_ENABLED
// returns true if vehicle is landing. Only used by Lua scripts
bool Copter::is_landing() const
{
@ -457,8 +459,6 @@ bool Copter::is_taking_off() const
return flightmode->is_taking_off();
}
#endif // AP_SCRIPTING_ENABLED
bool Copter::current_mode_requires_mission() const
{
#if MODE_AUTO_ENABLED == ENABLED

View File

@ -679,9 +679,9 @@ private:
// lua scripts use this to retrieve EKF failsafe state
// returns true if the EKF failsafe has triggered
bool has_ekf_failsafed() const override;
#endif // AP_SCRIPTING_ENABLED
bool is_landing() const override;
bool is_taking_off() const override;
#endif // AP_SCRIPTING_ENABLED
void rc_loop();
void throttle_loop();
void update_batt_compass(void);