mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 04:03:59 -04:00
Plane: disable TECS use during NAV_SCRIPT_TIME
This commit is contained in:
parent
4309fc817e
commit
0efb2f2048
@ -173,9 +173,9 @@ public:
|
|||||||
|
|
||||||
bool allows_throttle_nudging() const override { return true; }
|
bool allows_throttle_nudging() const override { return true; }
|
||||||
|
|
||||||
bool does_auto_navigation() const override { return true; }
|
bool does_auto_navigation() const override;
|
||||||
|
|
||||||
bool does_auto_throttle() const override { return true; }
|
bool does_auto_throttle() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
@ -112,3 +112,19 @@ void ModeAuto::navigate()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool ModeAuto::does_auto_navigation() const
|
||||||
|
{
|
||||||
|
#if AP_SCRIPTING_ENABLED
|
||||||
|
return (!plane.nav_scripting_active());
|
||||||
|
#endif
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ModeAuto::does_auto_throttle() const
|
||||||
|
{
|
||||||
|
#if AP_SCRIPTING_ENABLED
|
||||||
|
return (!plane.nav_scripting_active());
|
||||||
|
#endif
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user