Thread: adxl345 demo
View Single Post
  #1   Spotlight this post!  
Unread 15-09-2013, 21:55
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
adxl345 demo

working on sensors off season.

trying to read one of the KOP ADXL345, connected via I2C.

Doing

this.adxl345_i2c = new ADXL345_I2C(1, ADXL345_I2C.DataFormat_Range.k2G);

then

adxl345_i2c.getAcceleration(ADXL345_I2C.Axes.kX)

getting consistent 0 results back on all three axes.

obvious programming booboo, bug in WPILIB, or do I need to start checking wiring (sidecar cable, etc)???
Reply With Quote