mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 08:33:34 +08:00
Auto Traj - Disable reActivate "reset" function for AutoLineSmoothVel Flight Task
This commit is contained in:
@@ -52,6 +52,14 @@ bool FlightTaskAutoLineSmoothVel::activate()
|
||||
return ret;
|
||||
}
|
||||
|
||||
void FlightTaskAutoLineSmoothVel::reActivate()
|
||||
{
|
||||
// Don't reset during takeoff TODO: Find a proper solution
|
||||
// The issue here is that with a small increment of velocity setpoint (generated by this flight task), the
|
||||
// land detector doesn't detect takeoff and without takeoff detection, the
|
||||
// flight task is always reset.
|
||||
}
|
||||
|
||||
void FlightTaskAutoLineSmoothVel::_setDefaultConstraints()
|
||||
{
|
||||
FlightTaskAuto::_setDefaultConstraints();
|
||||
|
||||
@@ -50,6 +50,7 @@ public:
|
||||
virtual ~FlightTaskAutoLineSmoothVel() = default;
|
||||
|
||||
bool activate() override;
|
||||
void reActivate() override;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user