View Single Post
  #2   Spotlight this post!  
Unread 03-03-2016, 15:19
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
no team
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Austin, TX
Posts: 1,128
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
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.