Program for FRDM-64k for read five accelerometers
Dependencies: FXOS8700CQ LSM303D MMA8451Q MPU6050 mbed
Fork of fxos8700cq_example by
ADXL335/ADXL335.h@4:c6b4d8c152cd, 2018-01-18 (annotated)
- Committer:
- vinajarr
- Date:
- Thu Jan 18 07:58:01 2018 +0000
- Revision:
- 4:c6b4d8c152cd
- Parent:
- 1:a7e3df03721c
Program can read 5 accelerometer 400Hz at same time
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vinajarr | 1:a7e3df03721c | 1 | #include "FXOS8700CQ.h" |
vinajarr | 1:a7e3df03721c | 2 | |
vinajarr | 1:a7e3df03721c | 3 | class ADXL335{ |
vinajarr | 1:a7e3df03721c | 4 | public: |
vinajarr | 1:a7e3df03721c | 5 | |
vinajarr | 1:a7e3df03721c | 6 | |
vinajarr | 1:a7e3df03721c | 7 | ADXL335(PinName analogX, PinName analogY, PinName analogZ); |
vinajarr | 1:a7e3df03721c | 8 | void setScale(double scale); |
vinajarr | 1:a7e3df03721c | 9 | double getScale(); |
vinajarr | 1:a7e3df03721c | 10 | void getAcc(SRAWDATA &); |
vinajarr | 1:a7e3df03721c | 11 | |
vinajarr | 1:a7e3df03721c | 12 | private: |
vinajarr | 1:a7e3df03721c | 13 | double _scale; |
vinajarr | 1:a7e3df03721c | 14 | double zeroGX; |
vinajarr | 1:a7e3df03721c | 15 | double zeroGY; |
vinajarr | 1:a7e3df03721c | 16 | double zeroGZ; |
vinajarr | 1:a7e3df03721c | 17 | AnalogIn X; |
vinajarr | 1:a7e3df03721c | 18 | AnalogIn Y; |
vinajarr | 1:a7e3df03721c | 19 | AnalogIn Z; |
vinajarr | 1:a7e3df03721c | 20 | |
vinajarr | 1:a7e3df03721c | 21 | }; |