Hello everyone,
My project is to realize a small inertial unit (2-axis : roll and pitch) using an Arduino Nano 33 BLE Sense for plane/glider monitoring.
The idea is to set up strongly the system on the windshield of the aircraft and then, to turn-on the device. This implies that the orientation of the system can be different each time it is switched on. The initial orientation is the one at start-up.
Once this is done, I would like that my algorithm computes automatically (in the setup function for example) the rotation matrix for switching from the "inertial unit" referential to the "aircraft" referential.
In my loop, thus I could measure the roll and pitch in my "inertial unit" and directly transform them in the "aircraft" referential.
Have you any ideas for :
1/ How to compute this rotation matrix ?
2/ How to calculate the pitch/roll in this configuration ? I do not think that a classic complementary filter could work in this case.
Thank you in advance.
Guillaume