mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 23:00:34 +08:00
FollowMe: legacy implementation. NOTE: FOLLOW-ME is already broken on legacy code.
This commit is contained in:
committed by
Lorenz Meier
parent
547cdc051c
commit
dca378fbfd
@@ -86,6 +86,10 @@ int FlightTasks::switchTask(FlightTaskIndex new_task_index)
|
||||
_current_task = new (&_task_union.autoLine) FlightTaskAutoLine();
|
||||
break;
|
||||
|
||||
case FlightTaskIndex::AutoFollowMe:
|
||||
_current_task = new (&_task_union.autoFollowMe) FlightTaskAutoFollowMe();
|
||||
break;
|
||||
|
||||
default:
|
||||
/* invalid task */
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user