mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_Math: fix bug in Quaternion::operator*=
This commit is contained in:
parent
326e68544c
commit
0a701088d4
@ -291,10 +291,10 @@ Quaternion Quaternion::operator*(const Quaternion &v) const {
|
||||
}
|
||||
|
||||
Quaternion &Quaternion::operator*=(const Quaternion &v) {
|
||||
float &w1 = q1;
|
||||
float &x1 = q2;
|
||||
float &y1 = q3;
|
||||
float &z1 = q4;
|
||||
float w1 = q1;
|
||||
float x1 = q2;
|
||||
float y1 = q3;
|
||||
float z1 = q4;
|
||||
|
||||
float w2 = v.q1;
|
||||
float x2 = v.q2;
|
||||
|
Loading…
Reference in New Issue
Block a user