mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +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:
parent
6b1fea76d0
commit
b241cf5c95
@ -338,7 +338,7 @@ public:
|
||||
{
|
||||
Quaternion res;
|
||||
res.from_axis_angle(vec);
|
||||
(*this) = (*this) * res;
|
||||
(*this) = res * (*this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user