It would be useful to combine the X,Y,Z outputs of the IMU into a Vector3d so we can write methods to operate upon it as a triple. One example would be rotate(Quaternion) that transforms the vector using a quaternion rotation. Since I have previously written such code, I will copy/paste it in and modify the IMU/Locator code to use it.
It would be useful to combine the X,Y,Z outputs of the IMU into a
Vector3d
so we can write methods to operate upon it as a triple. One example would berotate(Quaternion)
that transforms the vector using a quaternion rotation. Since I have previously written such code, I will copy/paste it in and modify the IMU/Locator code to use it.