mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
FlightTaskOrbit: fix rotation direction in telemetry
This commit is contained in:
@@ -99,7 +99,7 @@ bool FlightTaskOrbit::sendTelemetry()
|
|||||||
{
|
{
|
||||||
orbit_status_s _orbit_status = {};
|
orbit_status_s _orbit_status = {};
|
||||||
_orbit_status.timestamp = hrt_absolute_time();
|
_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
|
_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,
|
if (globallocalconverter_toglobal(_center(0), _center(1), _position_setpoint(2), &_orbit_status.x, &_orbit_status.y,
|
||||||
|
|||||||
Reference in New Issue
Block a user