FlightTaskAuto: override default constraints

This commit is contained in:
Dennis Mannhart
2018-07-20 09:26:18 +02:00
committed by Lorenz Meier
parent 962c2eff61
commit 4d6539b076
2 changed files with 12 additions and 9 deletions
+2 -1
View File
@@ -70,7 +70,8 @@ public:
bool updateInitialize() override;
protected:
void _updateSetpointLimits() override;
void _setDefaultConstraints() override;
float _getMaxCruiseSpeed() {return MPC_XY_CRUISE.get();} /**< getter for default cruise speed */
matrix::Vector3f _prev_prev_wp{}; /**< Pre-previous waypoint (local frame). This will be used for smoothing trajectories -> not used yet. */
matrix::Vector3f _prev_wp{}; /**< Previous waypoint (local frame). If no previous triplet is available, the prev_wp is set to current position. */