44 #include "VelocitySmoothing.hpp" 70 inline float _constrainOneSide(
float val,
float constrain);
72 void _generateHeading();
74 void _updateTrajConstraints();
76 void _generateTrajectory();
86 } _reset_counters{0, 0, 0, 0};
bool activate() override
Call once on the event where you switch to the task.
Definition: FlightTaskAutoLineSmoothVel.cpp:44
VelocitySmoothing _trajectory[3]
Trajectories in x, y and z directions.
Definition: FlightTaskAutoLineSmoothVel.hpp:77
bool _generateHeadingAlongTraj()
Generates heading along trajectory.
Definition: FlightTaskAutoLineSmoothVel.cpp:87
void _prepareSetpoints()
Generate velocity target points for the trajectory generator.
Definition: FlightTaskAutoLineSmoothVel.cpp:139
void _generateSetpoints() override
Generate setpoints along line.
Definition: FlightTaskAutoLineSmoothVel.cpp:66
Definition: px4_param.h:318
Definition: FlightTaskAutoMapper2.hpp:45
Abstract Flight task which generates local setpoints based on the triplet type.
TODO: document the algorithm |T1| T2 |T3| __| |____ __ Jerk |_| / \ Acceleration ___/ ___ ;" / / V...
Definition: VelocitySmoothing.hpp:54
void _checkEkfResetCounters()
Reset the trajectories when the ekf resets velocity or position.
Definition: FlightTaskAutoLineSmoothVel.cpp:113
void reActivate() override
Call this to reset an active Flight Task.
Definition: FlightTaskAutoLineSmoothVel.cpp:58
Definition: FlightTaskAutoLineSmoothVel.hpp:46