FlightTaskAuto: merge activate(), reActivate() and update() from FlightTaskAutoLineSmoothVel

This commit is contained in:
Matthias Grob
2021-11-16 10:08:47 +01:00
parent 51ebb0f294
commit 179b1cdf56
5 changed files with 102 additions and 110 deletions
@@ -42,9 +42,8 @@ using namespace matrix;
bool FlightTaskAutoFollowMe::update()
{
bool ret = FlightTaskAuto::update();
_position_setpoint = _target;
matrix::Vector2f vel_sp = _getTargetVelocityXY();
_velocity_setpoint = matrix::Vector3f(vel_sp(0), vel_sp(1), 0.0f);
return ret;
return true;
}