position control: remove empty space

This commit is contained in:
Dennis Mannhart
2018-02-10 12:40:00 +01:00
committed by Lorenz Meier
parent 9ff4d13c2c
commit 3ae07843e9
@@ -134,7 +134,6 @@ vehicle_attitude_setpoint_s thrustToAttitude(const matrix::Vector3f &thr_sp, con
*/
matrix::Vector2f constrainXY(const matrix::Vector2f &v0, const matrix::Vector2f &v1, const float max)
{
if (matrix::Vector2f(v0 + v1).norm() <= max) {
/* Vector does not exceed maximum magnitude */
return v0 + v1;