mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-28 11:00:38 +08:00
Euler: improve quaternion constructor
This commit is contained in:
1 parent
1d0e7f1ca1
commit
b8568a89db
1 file changed
+1
-2
+1
-2
@@ -117,9 +117,8 @@ public:
|
||||
*
|
||||
* @param q quaternion
|
||||
*/
|
||||
Euler(const Quaternion<Type> &q)
|
||||
Euler(const Quaternion<Type> &q) : Vector<Type, 3>(Euler(Dcm<Type>(q)))
|
||||
{
|
||||
*this = Euler(Dcm<Type>(q));
|
||||
}
|
||||
|
||||
inline Type phi() const
|
||||
|
||||
Reference in new issue
Block a user