Hello,
Quick question for anyone that might have run into this.
We have our control thread running at 200Hz. Within that thread we measure all sensors and they get logged.
Looking at the logs, it appears like the GyroAngle and Gyro rate are only updated every 4 cycles (20 ms) it can vary to 3 or 5 at times.
The gyro is a simple analog gyro that is getting instantiated with no extra configurations.
Some example data shown here.
Columns are : [Time(s), Angle(degrees), rate(degrees/s)]
The angles and rates are simply read by gyro.getAngle() and gyro.getRate()
https://gyazo.com/6fa246ed6dd2f2c020e173724f2bca0a
Can anyone provides any suggestion on why this is so slow and ways to fix it?
Thanks for any guidance.