45 #include <matrix/matrix/math.hpp> 54 void setLineFromTo(
const matrix::Vector3f &origin,
const matrix::Vector3f &target);
55 void setSpeed(
const float &speed);
56 void setSpeedAtTarget(
const float &speed_at_target);
57 void setAcceleration(
const float &acc);
58 void setDeceleration(
const float &dec);
83 void generateSetpoints(matrix::Vector3f &position_setpoint, matrix::Vector3f &velocity_setpoint);
86 const float &_deltatime;
87 const matrix::Vector3f &_pos;
89 float _desired_acceleration{0.0f};
90 float _desired_deceleration{0.0f};
91 float _desired_speed{0.0f};
92 float _desired_speed_at_target{0.0f};
94 matrix::Vector3f _target{};
95 matrix::Vector3f _origin{};
void setAllDefaults()
Set all parameters to their default value depending on the direction of the line. ...
Definition: StraightLine.cpp:177
Definition: StraightLine.hpp:47
Definition: px4_param.h:318
C++ base class for modules/classes using configuration parameters.
Definition: px4_module_params.h:46
void generateSetpoints(matrix::Vector3f &position_setpoint, matrix::Vector3f &velocity_setpoint)
Generate setpoints on a straight line according to parameters.
Definition: StraightLine.cpp:55
float getMaxAcc()
Get the maximum possible acceleration depending on the direction of the line Respects horizontal and ...
Definition: StraightLine.cpp:106
float getMaxVel()
Get the maximum possible velocity depending on the direction of the line Respects horizontal and vert...
Definition: StraightLine.cpp:141