|
Re: Gyro Oddities
Quote:
Originally Posted by keericks
On this same topic ... we have the Gyro wired properly and sensitivty set properly via the C++ method and are getting readouts via the GetAngle method. The problem is that the readouts are all over the map.
1. One time while the Gyro is at rest, it's returning a steadily increasing value well into the thousands if we let it keep going.
2. Another time while at rest, the reading is as expected, a few degrees positive and negative when twisting slowly about the z-axis.
3. Sometimes when reading the voltage return on the PWM, we get the standard 2.5v at rest, but then for no reason, the voltage jumps to 4.6+ and seems to get stuck there until we "jostle" the gyro.
Not sure if this is a bad Gyro and we don't have a 2nd one to test if this is the case. Any ideas?
|
I had a similar problem, but only until we realized, it is measuring degrees, not normalized degrees (so you don't have to multiply it by 360) this might be part of the problem
also, check the wiring
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
|