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