diyaerospace
Well-Known Member
- Joined
- Sep 21, 2021
- Messages
- 146
- Reaction score
- 17
Hi,
I have been working on a custom altimeter that I plan to use to calculate altitude, velocity, position, etc. I have tested it a couple of times and the altitude calculation looks good. The velocity measurements did seem relatively accurate as well but the main problem is drift. When the rocket is straight up there is little to no drift but when pitched over 90 degrees the calculation drifts 500 meters a second every minute. This is not good enough and I did some research and it seems that quaternions can fix the drift. However I am having trouble finding a good library to use. I was wondering if anyone could help me out with this!
Ideally the quaternions could correct with the movements of the rocket and keep the z axis always pointed upward.
I am using a MPU 6050 but plan to switch to the LSM6DSO32 once they are restocked!
I use the Arduino IDE to code all of this!
Any suggestions would be appreciated, I am also only in 7th grade so most math will likely be beyond me.
Thanks for your help!
I have been working on a custom altimeter that I plan to use to calculate altitude, velocity, position, etc. I have tested it a couple of times and the altitude calculation looks good. The velocity measurements did seem relatively accurate as well but the main problem is drift. When the rocket is straight up there is little to no drift but when pitched over 90 degrees the calculation drifts 500 meters a second every minute. This is not good enough and I did some research and it seems that quaternions can fix the drift. However I am having trouble finding a good library to use. I was wondering if anyone could help me out with this!
Ideally the quaternions could correct with the movements of the rocket and keep the z axis always pointed upward.
I am using a MPU 6050 but plan to switch to the LSM6DSO32 once they are restocked!
I use the Arduino IDE to code all of this!
Any suggestions would be appreciated, I am also only in 7th grade so most math will likely be beyond me.
Thanks for your help!