mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-22 01:30:35 +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: {
|
case ROTATION_ROLL_90_YAW_90: {
|
||||||
tmp = z; z = y; y = -tmp;
|
tmp = x;
|
||||||
tmp = x; x = -y; y = tmp;
|
x = z;
|
||||||
|
z = y;
|
||||||
|
y = tmp;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user