FlightTaskAuto: abstract class for mapping triplets to quadruple

FlightTaskAuto: add type that corresponds to triplet type

FligthTaskAuto: set all setpoints if invalid in xy

FlightTaskAuto: cast triplet type to WaypointType

FlightTaskAutoLine: class for px4 legacy auto

FlightTaskAutoLine: methods prototype

FlightTaskAuto: change sp to wp (=Waypoint)
add params

FlightTaskAutoLine: follow waypoints along line based on flight state
This commit is contained in:
Dennis Mannhart
2018-01-12 17:27:36 +01:00
committed by Lorenz Meier
parent 89a902524a
commit 6e62beb560
11 changed files with 963 additions and 17 deletions
+4
View File
@@ -72,6 +72,10 @@ int FlightTasks::switchTask(FlightTaskIndex new_task_index)
_current_task = new (&_task_union.sport) FlightTaskSport();
break;
case 8:
_current_task = new (&_task_union.autoLine) FlightTaskAutoLine(this, "ALN");
break;
default:
/* invalid task */
return -1;