- #1
becky91
- 3
- 0
Hey guys,
I recently did a project with combining and accelerometer and gyroscope together using the 6DOF IMU Razor and an Arduino and now i need to try something different but i need some help. How does one integrate a gyroscope output? I tried something like this below but i don't think its complete:
How do i update my angle, hence integrating my gyro?
Any help is much appreciated!
Thanks
I recently did a project with combining and accelerometer and gyroscope together using the 6DOF IMU Razor and an Arduino and now i need to try something different but i need some help. How does one integrate a gyroscope output? I tried something like this below but i don't think its complete:
Code:
xGyro = analogRead((X_GYRO_APIN) - 403); //removing offset from raw ADC value
xGyro *= (3.3 / 1023.0) / 0.00333; //now reads deg/sec
tmpf = xGyro;
tmpf *= interval / 1000.0f; //now reads deg
How do i update my angle, hence integrating my gyro?
Any help is much appreciated!
Thanks