mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
rotation conversion: deconfuse roll 90 yaw 90
This commit is contained in:
parent
dfa5ca1710
commit
81e576b63a
@ -173,8 +173,10 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z)
|
||||
}
|
||||
|
||||
case ROTATION_ROLL_90_YAW_90: {
|
||||
tmp = z; z = y; y = -tmp;
|
||||
tmp = x; x = -y; y = tmp;
|
||||
tmp = x;
|
||||
x = z;
|
||||
z = y;
|
||||
y = tmp;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user