FlightTaskOrbit: fix direction change via MAVLink command

This commit is contained in:
Matthias Grob 2021-11-03 09:44:36 +01:00
parent d450afead6
commit eda9dce033
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ bool FlightTaskOrbit::applyCommandParameters(const vehicle_command_s &command)
// commanded radius
if (PX4_ISFINITE(command.param1)) {
// Note: Radius sign is defined as orbit direction in MAVLINK
float radius = fabsf(command.param1);
float radius = command.param1;
is_clockwise = radius > 0;
new_radius = fabsf(radius);
}