mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 01:04:19 +08:00
added ROTATION_PITCH_90_ROLL_270
This commit is contained in:
committed by
Lorenz Meier
parent
c31c29097d
commit
3b88937594
@@ -249,5 +249,11 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z)
|
||||
z = -0.932324f * tmpx + 0.361625f * tmpy + 0.000000f * tmpz;
|
||||
return;
|
||||
}
|
||||
|
||||
case ROTATION_PITCH_90_ROLL_270: {
|
||||
tmp = x; x = -y;
|
||||
y = z; z = -tmp;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,6 +79,7 @@ enum Rotation {
|
||||
ROTATION_PITCH_90_YAW_180 = 28,
|
||||
ROTATION_PITCH_90_ROLL_90 = 29,
|
||||
ROTATION_YAW_293_PITCH_68_ROLL_90 = 30,
|
||||
ROTATION_PITCH_90_ROLL_270 = 31,
|
||||
ROTATION_MAX
|
||||
};
|
||||
|
||||
@@ -120,6 +121,7 @@ const rot_lookup_t rot_lookup[] = {
|
||||
{ 0, 90, 180 },
|
||||
{ 90, 90, 0 },
|
||||
{ 90, 68, 293 },
|
||||
{270, 90, 0 },
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user