|
Re: Analog Gyro .getAngle() function occasionally giving massive random values
Look at your electrical connections. Analog Gyros will give some crazy numbers if they don't have a good connection.
I might be wrong here, but when you have no radial velocity, the analog gyro should output 2.5V, then increase or decrease depending on which way it's rotated.
If the connection isn't good, the controller won't see 2.5V and will give you widely varying numbers like what you're seeing.
__________________
Taking a break from mentoring for a few years. (Is that allowed?!?)
Controls Mentor
@rnazaretian
Previous teams:
Team Fusion, FRC 364
Garnet Squadron, FRC 4901
Last edited by RyanN : 03-03-2016 at 20:42.
|