mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-15 10:29:21 +08:00
Quaternion from_dcm don't pass by value
This commit is contained in:
@@ -510,7 +510,7 @@ public:
|
||||
/**
|
||||
* XXX DEPRECATED, can use assignment or ctor
|
||||
*/
|
||||
Quaternion from_dcm(Matrix<Type, 3, 3> dcm) {
|
||||
Quaternion from_dcm(const Matrix<Type, 3, 3>& dcm) {
|
||||
return Quaternion(Dcmf(dcm));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user