mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:48:52 +08:00
rotation conversion: deconfuse roll 90 yaw 90
This commit is contained in:
committed by
Mathieu Bresciani
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user