![]() |
Need help with gyros
I'm getting some strange results when trying to read my gyroscope. As it sits there the gyro seems to accumulate angle: it will slowly count upwards, starting at zero and gradually drifting upwards into positive values. For the life of me I can't figure out why, with the robot sitting dead still, the gyro reading does not stay at zero. Anyone else have this problem?
Gyro test loop: Code:
// gyro testCode:
public double getCurrentHeading() { |
Re: Need help with gyros
Quote:
|
Re: Need help with gyros
Then I guess my next question is how do I fix it? Issuing a gyro.reset() command to return it to true constantly defeats the purpose of having a gyro to begin with.
|
Re: Need help with gyros
Quote:
|
Re: Need help with gyros
Autodrive routine. I want it to go forward while keeping true. Positive drift of the gyro will generally cause the bot to slowly curve to the right. I was also playing with the idea of a one button "auto true", which would realign the bot to the scoring wall automatically.
I suppose I could use a floor function and round things off. Just bothers me that someone would build a gyro that doesn't hold true. I suppose I could build my own and measure the torque created when I turn it, but that kind of project is more for between competitions. |
Re: Need help with gyros
Quote:
|
Re: Need help with gyros
Quote:
|
Re: Need help with gyros
Quote:
I'm told that the gyro error at the end of 2 minutes is only about 1.5 degrees. |
Re: Need help with gyros
Quote:
|
Re: Need help with gyros
Quote:
|
Re: Need help with gyros
Quote:
|
| All times are GMT -5. The time now is 22:16. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi