Adafruit ISM330DLC Gyro SPI P2 driver, yaw pitch roll rotation matrix integration, fixed and float
I'm reading the gyro rate outputs at 417hz, creating a rotation matrix, multiplying that times the prior rotation matrix, to create the current rotation matrix, then extracting the yaw, pitch and roll from it.
I'm doing it in fixed point and in floating point to check my work. Floating point was so much easier..
I display an artificial horizon and a heading plot, and output the yaw, pitch and roll in both fixed and float.
Anybody have a better way to show fake decimal point integers on a debug terminal display?
I got a lot of rotation matrix help from this site: https://danceswithcode.net/engineeringnotes/
I want to combine the accelerometer data with the gyro data to create my own IHRS for my drome project.
One of my issues is that when the board is rotated 90 degrees in yaw, the roll axis outputs as pitch, and the pitch axis outputs as roll... you can see this at the end of the youtube video, with yaw around 90, when I "roll" the board, and the artificial horizon shows a pitch change.