Browse Source

FlightTaskOrbit: fix vehicle yawing to the center

I accidentally swapped yaw setpoint and yawspeed setpoint when switching
to the new setpointinterface in 309237c4a2
sbg
Matthias Grob 7 years ago committed by ChristophTobler
parent
commit
993d76c0da
  1. 2
      src/lib/FlightTasks/tasks/FlightTaskOrbit.cpp

2
src/lib/FlightTasks/tasks/FlightTaskOrbit.cpp

@ -101,6 +101,6 @@ bool FlightTaskOrbit::update()
_velocity_setpoint = Vector3f(velocity_xy(0), velocity_xy(1), 0.f); _velocity_setpoint = Vector3f(velocity_xy(0), velocity_xy(1), 0.f);
/* make vehicle front always point towards the center */ /* make vehicle front always point towards the center */
_yawspeed_setpoint = atan2f(center_to_position(1), center_to_position(0)) + M_PI_F; _yaw_setpoint = atan2f(center_to_position(1), center_to_position(0)) + M_PI_F;
return true; return true;
} }

Loading…
Cancel
Save