View Single Post
  #4   Spotlight this post!  
Unread 16-03-2013, 22:34
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: AXDL345_I2C java problems

Are you getting nonsensical values? Are you getting some sort of exception? I don't really know what problem you're having.

As a reference, we initialized the accelerometer like this:
Code:
ADXL345_I2C _accelerometer = new ADXL345_I2C(1,ADXL345_I2C.DataFormat_Range.k2G);
and read from it like this:
Code:
double yAccel = _accelerometer.getAcceleration(ADXL345_I2C.Axes.kY);
__________________
I code stuff.
Reply With Quote