mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Copter: is_landing/is_taking_off not to req scripting
This commit is contained in:
parent
606ef1b269
commit
a88c3a08b0
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user