View Single Post
  #3   Spotlight this post!  
Unread 14-02-2012, 05:59
java4first java4first is offline
(Java) Programming Mentor
AKA: Stu
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2011
Location: Goffstown, NH
Posts: 56
java4first is an unknown quantity at this point
Re: Accelerometer java code problems. Returns zero.

For what it's worth - in our case, the fix for this was to switch from the 'round' cable to the ribbon cable in connecting the digital sidecar to the cRIO module. We did that and all of a sudden starting getting values.

We are using the older 8-slot cRIO, and two of the 3 wire PWM cables (with two wires in each) to connect the accelerometer to the I2C connection on the sidecar.

Our test code was pretty much the same as the first posting.
Reply With Quote