View Single Post
  #8   Spotlight this post!  
Unread 21-01-2011, 17:15
iv1777 iv1777 is offline
Registered User
FRC #1777
 
Join Date: Jan 2011
Location: Overland Park
Posts: 18
iv1777 is an unknown quantity at this point
Re: Help wiring gyro, then programming... please.

We have tested both the same and a different gyro on the Analog breakout, made sure it's wire correctly (in relation to 5v Ground and Sig wiring)
And whenever we try to get a readout it's saying some numbers in the negative range - around -.8 something.... It will change a small amount but it refuses to go positive.
Also if we jsut unplug the gyro and run code it gives us the same numbers!
We are using Java and could not find any sample code, so..
Gyro is on slot 1 of analog input on slot 1 of the cRIO
private Gyro gyro = new Gyro(1, 1);
then used outputs
gyro.getAngle();
assigned to Driver Station user message line 3..
which gave us the negative numbers...
What are we doing wrong?

Thanks in advance!