Remove AutoLineSmoothVel, merged into Auto

This commit is contained in:
Matthias Grob
2021-11-16 10:08:47 +01:00
parent 179b1cdf56
commit b36dbf8de4
8 changed files with 4 additions and 141 deletions
@@ -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]@
};