mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 12:08:52 +08:00
add rotation for stryker vtol
This commit is contained in:
committed by
Lorenz Meier
parent
d3149153f6
commit
f36669723d
@@ -233,5 +233,10 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z)
|
||||
y = -y;
|
||||
return;
|
||||
}
|
||||
case ROTATION_PITCH_90_ROLL_90: {
|
||||
tmp = x; x = y;
|
||||
y = -z; z = -tmp;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,6 +77,7 @@ enum Rotation {
|
||||
ROTATION_ROLL_270_YAW_270 = 26,
|
||||
ROTATION_ROLL_180_PITCH_270 = 27,
|
||||
ROTATION_PITCH_90_YAW_180 = 28,
|
||||
ROTATION_PITCH_90_ROLL_90 = 29,
|
||||
ROTATION_MAX
|
||||
};
|
||||
|
||||
@@ -115,7 +116,8 @@ const rot_lookup_t rot_lookup[] = {
|
||||
{ 0, 270, 0 },
|
||||
{270, 0, 270 },
|
||||
{180, 270, 0 },
|
||||
{ 0, 90, 180 }
|
||||
{ 0, 90, 180 },
|
||||
{ 90, 90, 0 }
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user