mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 19:03:34 +08:00
FlightTaskAuto: merge activate(), reActivate() and update() from FlightTaskAutoLineSmoothVel
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user