Dennis Mannhart
29fb5089bd
FlightTasks: construct all tasks in constructor
2018-07-20 09:26:18 +02:00
Dennis Mannhart
b1530d1a81
FlightTasks: create struct that contains FlightTask and FlightTaskIndex
2018-07-20 09:26:18 +02:00
Dennis Mannhart
b2af9c3f58
FlightTasks: error to char string message
2018-07-20 09:26:18 +02:00
Dennis Mannhart
1099dd8c7d
FlightTaskOffboard: first commit similar in logic to legacy code
...
FlightTaskOffboard: ensure supported offboard setpoints
2018-07-20 09:26:18 +02:00
Dennis Mannhart
dca378fbfd
FollowMe: legacy implementation. NOTE: FOLLOW-ME is already broken on legacy code.
2018-07-20 09:26:18 +02:00
Dennis Mannhart
51d4c1f305
FlightTasks: add getter method for constraints
2018-07-20 09:26:18 +02:00
Dennis Mannhart
aef6b9216e
FlightTasksAuto/Line: replace BlockParams with module params
2018-07-20 09:26:18 +02:00
Dennis Mannhart
fbe8a558b2
FlightTaskIndex: add AutoLine
2018-07-20 09:26:18 +02:00
Dennis Mannhart
6e62beb560
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
2018-07-20 09:26:18 +02:00
Beat Küng
0eaa6222a2
flight tasks: refactor BlockParam -> Param and handle param updates
2018-04-11 07:47:06 +02:00
Matthias Grob
309237c4a2
FlightTasks: replace setpoint setters with members
...
I realized that instead of using the setpoint setters inline
in real world tasks everyone started to have its own setpoint
member variable and only call the setter in the end for all the
privatly generate setpoints. This makes the setter useless and
therefore I switched to member setpoints in the architecture.
They bring more felxibility which is obviously needed but also
less structure which is the price to pay.
2018-04-05 07:30:12 +02:00
Matthias Grob
8b4471d842
FlightTasks: comment out mavlink command processing
...
because upstream there needs to be a
common mavlink command definition first
and then it can be easily reenabled again
2018-04-05 07:30:12 +02:00
Matthias Grob
e8cc93ec23
FlightTasks: create enumeration type for the task index while still offering integer index with checks
2018-04-05 07:30:12 +02:00
Dennis Mannhart
ac6ed74063
Add FlightTaskManualPositionSmooth
2018-04-05 07:30:12 +02:00
Dennis Mannhart
39c77546d3
FlightTaskManualAltitudeSmooth: create taks
2018-04-05 07:30:12 +02:00
Dennis Mannhart
3b4870b2c2
FlightTaskManual: define as abstract class
2018-04-05 07:30:12 +02:00
Dennis Mannhart
dcdf4d50a0
FlightTasks: add stabilized and fix switchTask for Altitude and Position
2018-04-05 07:30:12 +02:00
Dennis Mannhart
a9ac94dd83
Add FlightTasksManual/Altitude to position controller
2018-04-05 07:30:12 +02:00
Matthias Grob
a00c3e4024
FlightTaskSport: created a simple child class of FlightTaskManual that can scale the velocity to a much higher value
2018-04-05 07:30:12 +02:00
Matthias Grob
6070d72308
FlightTasks: Various review refactoring
2018-04-05 07:30:12 +02:00
Matthias Grob
fd93e55527
FlightTaks: prevent running a new task with default parameters because they got rejected
2018-04-05 07:30:12 +02:00
Matthias Grob
d9c7e6321f
FlightTasks: Introduce the empty setpoint to reset the setpoint for every loop iteration and return it in case of no task running
2018-04-05 07:30:12 +02:00
Matthias Grob
c500221894
FlightTasks: move methods of the class header into the cpp
2018-04-05 07:30:12 +02:00
Matthias Grob
efd240904f
FlightTasks: added possibility to apply task parameters from the vehicle command
2018-04-05 07:30:12 +02:00
Matthias Grob
b1f24da05e
FlightTasks: enable mavlink command handling for switching tasks including acknowledgement
2018-04-05 07:30:12 +02:00