Program for FRDM-64k for read five accelerometers
Dependencies: FXOS8700CQ LSM303D MMA8451Q MPU6050 mbed
Fork of fxos8700cq_example by
Diff: ADXL335/ADXL335.cpp
- Revision:
- 2:237bd73c27e9
- Parent:
- 1:a7e3df03721c
--- a/ADXL335/ADXL335.cpp Thu Dec 01 08:28:52 2016 +0000 +++ b/ADXL335/ADXL335.cpp Mon Dec 05 09:16:43 2016 +0000 @@ -23,8 +23,8 @@ void ADXL335::getAcc(SRAWDATA &acc) { - acc.x=(double(this->X.read())*3.3-this->zeroGX)/this->_scale; - acc.y=(double(this->Y.read())*3.3-this->zeroGY)/this->_scale; + //acc.x=(double(this->X.read())*3.3-this->zeroGX)/this->_scale; + //acc.y=(double(this->Y.read())*3.3-this->zeroGY)/this->_scale; acc.z=(double(this->Z.read())*3.3-this->zeroGZ)/this->_scale; /* acc.x=this->X.read()*3.3;