mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 08:40:34 +08:00
position control: remove empty space
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user