aster94 / SensorFusion

A simple implementation of some complex Sensor Fusion algorithms
GNU General Public License v3.0
197 stars 41 forks source link

Please make the quaternion variables accessible #5

Closed SimLeek closed 3 years ago

SimLeek commented 3 years ago

getQuat() maybe. And then a small Quaternion class to handle all four values at once.

For now I'm just going to make q0,q1,q2,q3 public for my personal stuff.

memoore1988 commented 3 years ago

^^^

aster94 commented 3 years ago

Feel free to make a function that returns the quaterniom

SimLeek commented 3 years ago

Oh hey, not dead!

I'm guessing I can make a PR then?

aster94 commented 3 years ago

Yes sure, getQuat() seems a good name

SimLeek commented 3 years ago

Welp, I completely forgot about this. Gimme a second...

SimLeek commented 3 years ago

OK, I imagine this isn't what you want at all:

image

Max speed, zero variable protection so you can still write to the quats.

SimLeek commented 3 years ago

Sent a merge request. All the getters copy values over, so I kept that with getQuat.

aster94 commented 3 years ago

I am closing, we can continue on the #6