base program for tilt measurement
Dependencies: COG4050_ADT7420 ADXL362
Fork of COG4050_adxl355_adxl357-ver2 by
Diff: ADXL35x/ADXL355.cpp
- Revision:
- 8:9e6ead2ee8d7
- Parent:
- 7:5aaa09c40283
- Child:
- 10:f5ba762b58b4
--- a/ADXL35x/ADXL355.cpp Tue Aug 14 11:33:30 2018 +0000 +++ b/ADXL35x/ADXL355.cpp Tue Aug 21 13:25:37 2018 +0000 @@ -16,9 +16,6 @@ adxl355.lock(); axis355_sens = 3.9e-6; axis357_sens = 19.5e-6; - calib_data.Sxx = 3.9e-6; - calib_data.Syy = 3.9e-6; - calib_data.Szz = 3.9e-6; } void ADXL355::frequency(int hz) { @@ -223,8 +220,7 @@ ret_val |= static_cast<uint64_t>(y) << 24; ret_val |= static_cast<uint64_t>(z) ; return ret_val; - } - +} /** ----------------------------------- */ /** CALIBRATION AND CONVERSION */ /** ----------------------------------- */ @@ -237,4 +233,4 @@ //uint32_t rawValue = data<<(32-nbit); // Otherwise perform the 2's complement math on the value return float((~(data - 0x01)) & 0xfffff) * -1; - } \ No newline at end of file +} \ No newline at end of file