mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 22:53:33 +08:00
FlightTasks: fix switch case style
This commit is contained in:
@@ -203,12 +203,14 @@ void FlightTasks::_updateCommand()
|
|||||||
|
|
||||||
// check what command it is
|
// check what command it is
|
||||||
FlightTaskIndex desired_task = FlightTaskIndex::None;
|
FlightTaskIndex desired_task = FlightTaskIndex::None;
|
||||||
switch(command.command) {
|
|
||||||
case vehicle_command_s::VEHICLE_CMD_DO_ORBIT :
|
switch (command.command) {
|
||||||
desired_task = FlightTaskIndex::Orbit;
|
case vehicle_command_s::VEHICLE_CMD_DO_ORBIT :
|
||||||
break;
|
desired_task = FlightTaskIndex::Orbit;
|
||||||
// ignore all unkown commands
|
break;
|
||||||
default : return;
|
|
||||||
|
// ignore all unkown commands
|
||||||
|
default : return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// switch to the commanded task
|
// switch to the commanded task
|
||||||
|
|||||||
Reference in New Issue
Block a user