mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 08:10:34 +08:00
add new rotation (#14512)
* add new rotation ROLL_270_YAW_180 fix compile error fix rotation modify roatation * modify enum to 41
This commit is contained in:
@@ -294,5 +294,13 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z)
|
||||
y = -tmp;
|
||||
return;
|
||||
}
|
||||
|
||||
case ROTATION_ROLL_270_YAW_180: {
|
||||
x = -x;
|
||||
tmp = y;
|
||||
y = -z;
|
||||
z = -tmp;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user