mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
FlightTask orbit: make format
This commit is contained in:
committed by
ChristophTobler
parent
e8d2f1c2be
commit
9aa6dad514
@@ -76,9 +76,8 @@ bool FlightTaskOrbit::applyCommandParameters(const vehicle_command_s &command)
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
if (PX4_ISFINITE(command.param5) && PX4_ISFINITE(command.param6) && PX4_ISFINITE(command.param7)) {
|
if (PX4_ISFINITE(command.param5) && PX4_ISFINITE(command.param6) && PX4_ISFINITE(command.param7)) {
|
||||||
if(globallocalconverter_tolocal(command.param5, command.param6, command.param7, &_center(0), &_center(1),
|
if (globallocalconverter_tolocal(command.param5, command.param6, command.param7, &_center(0), &_center(1),
|
||||||
&_position_setpoint(2)))
|
&_position_setpoint(2))) {
|
||||||
{
|
|
||||||
// global to local conversion failed
|
// global to local conversion failed
|
||||||
ret = false;
|
ret = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user