kj
Dependencies: ADXL345_I2C
Fork of Accelerometre by
Accelerometre.h@1:cb5c86a009c8, 2017-03-30 (annotated)
- Committer:
- Taliarte
- Date:
- Thu Mar 30 07:23:17 2017 +0000
- Revision:
- 1:cb5c86a009c8
- Parent:
- 0:807955c8969c
F
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Risord | 0:807955c8969c | 1 | #ifndef Accelerometre_H |
Risord | 0:807955c8969c | 2 | #define Accelerometre_H |
Risord | 0:807955c8969c | 3 | |
Risord | 0:807955c8969c | 4 | #include "ADXL345_I2C.h" |
Risord | 0:807955c8969c | 5 | #include "string.h" |
Risord | 0:807955c8969c | 6 | |
Risord | 0:807955c8969c | 7 | |
Risord | 0:807955c8969c | 8 | |
Risord | 0:807955c8969c | 9 | class Accelerometre |
Risord | 0:807955c8969c | 10 | { |
Risord | 0:807955c8969c | 11 | //// déclaration des attributs/méthode privés //// |
Risord | 0:807955c8969c | 12 | private: |
Risord | 0:807955c8969c | 13 | int readings[3]; |
Risord | 0:807955c8969c | 14 | int readingPrec[3]; |
Risord | 0:807955c8969c | 15 | |
Taliarte | 1:cb5c86a009c8 | 16 | int readingsABS[3]; |
Taliarte | 1:cb5c86a009c8 | 17 | int readingPrecABS[3]; |
Taliarte | 1:cb5c86a009c8 | 18 | |
Risord | 0:807955c8969c | 19 | int i;// |
Risord | 0:807955c8969c | 20 | char position; |
Risord | 0:807955c8969c | 21 | ADXL345_I2C *_acc; |
Risord | 0:807955c8969c | 22 | //string resultext; |
Risord | 0:807955c8969c | 23 | |
Risord | 0:807955c8969c | 24 | //// déclaration des attributs/méthode publique //// |
Risord | 0:807955c8969c | 25 | public: |
Risord | 0:807955c8969c | 26 | Accelerometre(); // Constructeur par défaut |
Risord | 0:807955c8969c | 27 | Accelerometre(ADXL345_I2C * acc); |
Risord | 0:807955c8969c | 28 | ~Accelerometre(); // Destructeur |
Risord | 0:807955c8969c | 29 | |
Risord | 0:807955c8969c | 30 | |
Risord | 0:807955c8969c | 31 | char getPosition(); |
Risord | 0:807955c8969c | 32 | void calculeABS(); |
Risord | 0:807955c8969c | 33 | void getXYZ(int* posXYZ); |
Risord | 0:807955c8969c | 34 | int initAcc(void); |
Risord | 0:807955c8969c | 35 | |
Risord | 0:807955c8969c | 36 | |
Risord | 0:807955c8969c | 37 | |
Risord | 0:807955c8969c | 38 | |
Risord | 0:807955c8969c | 39 | |
Risord | 0:807955c8969c | 40 | |
Risord | 0:807955c8969c | 41 | |
Risord | 0:807955c8969c | 42 | }; |
Risord | 0:807955c8969c | 43 | |
Risord | 0:807955c8969c | 44 | #endif // ANALYSEURTAB_H |