fovea1959
15-09-2013, 21:55
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)???
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)???