FlightTask StraightLine: set origin and target at the same time

This avoids issues with reseting/calculating the max vel/acc
This commit is contained in:
ChristophTobler
2018-07-23 16:35:54 +02:00
committed by Lorenz Meier
parent 9e8c3ff0dc
commit ccd8a47015
2 changed files with 5 additions and 11 deletions

View File

@@ -51,8 +51,7 @@ public:
~StraightLine() = default;
// setter functions
void setTarget(const matrix::Vector3f &target);
void setOrigin(const matrix::Vector3f &origin);
void setLineFromTo(const matrix::Vector3f &origin, const matrix::Vector3f &target);
void setSpeed(const float &speed);
void setSpeedAtTarget(const float &speed_at_target);
void setAcceleration(const float &acc);