mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 03:13:34 +08:00
Quaternion: Adjusted rotate() to the Hamilton convention (which we switched to)
Note: This error was not caught by a test because the test included only trivial cases which do not explore non-commuting quaternions.
This commit is contained in:
@@ -338,7 +338,7 @@ public:
|
|||||||
{
|
{
|
||||||
Quaternion res;
|
Quaternion res;
|
||||||
res.from_axis_angle(vec);
|
res.from_axis_angle(vec);
|
||||||
(*this) = (*this) * res;
|
(*this) = res * (*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user