mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 15:13:34 +08:00
Add board orientation ROLL_90_YAW_270
This commit is contained in:
committed by
Daniel Agar
parent
c75954fef8
commit
7bea81f02c
@@ -277,5 +277,13 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z)
|
||||
x = tmp;
|
||||
return;
|
||||
}
|
||||
|
||||
case ROTATION_ROLL_90_YAW_270: {
|
||||
tmp = x;
|
||||
x = -z;
|
||||
z = y;
|
||||
y = -tmp;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,6 +84,7 @@ enum Rotation {
|
||||
ROTATION_PITCH_9_YAW_180 = 32,
|
||||
ROTATION_PITCH_45 = 33,
|
||||
ROTATION_PITCH_315 = 34,
|
||||
ROTATION_ROLL_90_YAW_270 = 35,
|
||||
ROTATION_MAX
|
||||
};
|
||||
|
||||
@@ -129,6 +130,7 @@ const rot_lookup_t rot_lookup[] = {
|
||||
{ 0, 9, 180 },
|
||||
{ 0, 45, 0 },
|
||||
{ 0, 315, 0 },
|
||||
{ 90, 0, 270 },
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user