mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-17 00:50:36 +08:00
conversion: added -45 deg pitch rotation
This commit is contained in:
committed by
Lorenz Meier
parent
add20389f6
commit
ab9ee3aa6c
@@ -272,5 +272,12 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z)
|
||||
x = tmp;
|
||||
return;
|
||||
}
|
||||
|
||||
case ROTATION_PITCH_315: {
|
||||
tmp = HALF_SQRT_2 * x - HALF_SQRT_2 * z;
|
||||
z = HALF_SQRT_2 * z + HALF_SQRT_2 * x;
|
||||
x = tmp;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user