Dennis Mannhart
ff45ee67b4
FlightTasks: remove empty line
2018-10-10 10:30:48 -04:00
Dennis Mannhart
c3ba2687ac
FlightTask: if not in air, reActivate the task which will set the setpoints to current
...
vehicle state.
2018-10-10 10:30:48 -04:00
Daniel Agar
223dacee64
multicopter position controller use const references
2018-08-31 14:37:49 -04:00
Martina
aef41a1378
remove empty lines
2018-08-09 16:38:47 -04:00
Martina
ede302290b
FlightTasks: add getter method to retrieve empty avoidance waypoint in the
...
mc_pos_control
2018-08-09 16:38:47 -04:00
Martina
b856c1048d
FlightTask: add methods to get the desired trajectory waypoints
2018-08-09 16:38:47 -04:00
ChristophTobler
8090708f76
FlightTasks: generate tasks depending on target
...
- rename flight tasks to use camelCase
- add core tasks to flight tasks cmake
- add additional tasks in targets (TODO)
- add templates
- generate hpp and cpp which contain all specified tasks
2018-08-08 13:44:49 +02:00
MaEtUgR
7d4fcccf83
FlightTasks: fix switch case style
2018-07-24 15:03:53 +02:00
MaEtUgR
e95d795b08
FlightTasks: use member function as check for constistency
2018-07-24 15:03:53 +02:00
MaEtUgR
8d88fa2fca
FlightTasks: fix multiple comments
2018-07-24 15:03:53 +02:00
MaEtUgR
3b7d31de75
FlightTasks: reintroduce vehicle command handling
...
The handling for vehicle commands inside the FlightTasks library
was already there but commented out because the previously used
MAVLink messages were tied to the specific application we used and
there was no clean common message definition. Because there is now
a well defined message for the orbit task I'm uncommenting and using
the working message handling again here.
2018-07-24 15:03:53 +02:00
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