mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
Euler: improve quaternion constructor
This commit is contained in:
parent
1d0e7f1ca1
commit
b8568a89db
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user