Hey there, I saw this thread and was wondering if you could help me get the accelerometer (and possibly the gyro) setup. The following is copied and pasted from the official FIRST forums.
I have my accelerometer plugged into the digital sidecar via the I2C bus. I try to set it up but just get compile errors. Can't understand why. Can someone help me out? Code below. Bold indicates complie errors.
Code:
ADXL345_I2C *accelerometer;
...
accelerometer = new ADXL345_I2C (1,kRange_2G);
...
std::cout<<accelerometer->GetAcceleration(Axes kAxis_X);