Skip to content
Snippets Groups Projects
Commit 25de837c authored by Matthias Grob's avatar Matthias Grob
Browse files

FlightTaskOrbit: fix rotation direction in telemetry

parent d4a40f5d
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ bool FlightTaskOrbit::sendTelemetry()
{
orbit_status_s _orbit_status = {};
_orbit_status.timestamp = hrt_absolute_time();
_orbit_status.radius = _r;
_orbit_status.radius = math::signNoZero(_v) * _r;
_orbit_status.frame = 0; // MAV_FRAME::MAV_FRAME_GLOBAL
if (globallocalconverter_toglobal(_center(0), _center(1), _position_setpoint(2), &_orbit_status.x, &_orbit_status.y,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment