mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 10:30:35 +08:00
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:
committed by
Lorenz Meier
parent
89a902524a
commit
6e62beb560
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user