by Fritzoid » Thu Jan 06, 2011 12:14 pm
by Fritzoid
Thu Jan 06, 2011 12:14 pm
Traull,
This could be due to "gyro drift". The task program calibrates the gyro centerpoints when it first starts. Over time, typically just a minute or two, the gyros will start to produce slightly offset results. This can lead to balance problems because the callback routine calculates the difference between the current gyro reading and the calibrated centerpoint.
You can verify this theory by adding a couple of print statements in the callback routine that will display the fields FBBalError and RLBalError. Use RoboPlus Terminal to monitor these numbers as the robot runs. If these numbers show an accumulating error that your problem is gyro drift.
Traull,
This could be due to "gyro drift". The task program calibrates the gyro centerpoints when it first starts. Over time, typically just a minute or two, the gyros will start to produce slightly offset results. This can lead to balance problems because the callback routine calculates the difference between the current gyro reading and the calibrated centerpoint.
You can verify this theory by adding a couple of print statements in the callback routine that will display the fields FBBalError and RLBalError. Use RoboPlus Terminal to monitor these numbers as the robot runs. If these numbers show an accumulating error that your problem is gyro drift.