carrino / Quaternion

Arduino rotation library
MIT License
16 stars 9 forks source link

Can it be used only with Gyro data #5

Open intensite opened 4 years ago

intensite commented 4 years ago

I am writing a software for a model rocket attitude control. Because of excessive acceleration I can not use an accelerometer and must rely almost exclusively to the Gyroscope data.

I looked at your 9DoF samples but it doesn't seem to be easy to convert to Gyro only.

Any pointers you could share.

Regards,

carrino commented 3 years ago

I think you can just update the quaternion directly instead of using the 9DOF lib.

_q *= Quaternion::from_euler_rotation_approx(gyrox, gyroy, gyroz);
_q.normalize();