mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
16 lines
239 B
C++
16 lines
239 B
C++
#include "Quaternion.hpp"
|
|
#include <assert.h>
|
|
#include <stdio.h>
|
|
|
|
using namespace matrix;
|
|
|
|
int main()
|
|
{
|
|
Quatf p(1, 0, 0, 0);
|
|
Quatf q(0, 1, 0, 0);
|
|
Quatf r = p*q;
|
|
Dcmf dcm = Dcmf(p);
|
|
Eulerf e = Eulerf(p);
|
|
return 0;
|
|
}
|