mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 03:43:33 +08:00
Remove AutoLineSmoothVel, merged into Auto
This commit is contained in:
@@ -60,11 +60,8 @@ int FlightModeManager::_initTask(FlightTaskIndex task_index)
|
||||
@# loop through all requested tasks
|
||||
@[if tasks]@
|
||||
@[for task in tasks]@
|
||||
@{
|
||||
firstLowercase = lambda s: s[:1].lower() + s[1:] if s else ''
|
||||
}@
|
||||
case FlightTaskIndex::@(task):
|
||||
_current_task.task = new (&_task_union.@(firstLowercase(task))) FlightTask@(task)();
|
||||
_current_task.task = new (&_task_union.@(task)) FlightTask@(task)();
|
||||
break;
|
||||
|
||||
@[end for]@
|
||||
|
||||
@@ -68,11 +68,8 @@ union TaskUnion {
|
||||
|
||||
@# loop through all requested tasks
|
||||
@[if tasks]@
|
||||
@{
|
||||
firstLowercase = lambda s: s[:1].lower() + s[1:] if s else ''
|
||||
}@
|
||||
@[for task in tasks]@
|
||||
FlightTask@(task) @(firstLowercase(task));
|
||||
FlightTask@(task) @(task);
|
||||
@[end for]@
|
||||
@[end if]@
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user