mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 05:37:35 +08:00
Quaternion: Use template type instead of single hardcoded type
This commit is contained in:
@@ -530,7 +530,7 @@ public:
|
||||
* XXX DEPRECATED, can use assignment or ctor
|
||||
*/
|
||||
Quaternion from_dcm(const Matrix<Type, 3, 3>& dcm) {
|
||||
return Quaternion(Dcmf(dcm));
|
||||
return Quaternion(Dcm<Type>(dcm));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user