plop
Accelerometre.h@0:807955c8969c, 2017-03-14 (annotated)
- Committer:
- Risord
- Date:
- Tue Mar 14 13:30:11 2017 +0000
- Revision:
- 0:807955c8969c
plop
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 | |
Risord | 0:807955c8969c | 16 | int i;// |
Risord | 0:807955c8969c | 17 | char position; |
Risord | 0:807955c8969c | 18 | ADXL345_I2C *_acc; |
Risord | 0:807955c8969c | 19 | //string resultext; |
Risord | 0:807955c8969c | 20 | |
Risord | 0:807955c8969c | 21 | //// déclaration des attributs/méthode publique //// |
Risord | 0:807955c8969c | 22 | public: |
Risord | 0:807955c8969c | 23 | Accelerometre(); // Constructeur par défaut |
Risord | 0:807955c8969c | 24 | Accelerometre(ADXL345_I2C * acc); |
Risord | 0:807955c8969c | 25 | ~Accelerometre(); // Destructeur |
Risord | 0:807955c8969c | 26 | |
Risord | 0:807955c8969c | 27 | |
Risord | 0:807955c8969c | 28 | char getPosition(); |
Risord | 0:807955c8969c | 29 | void calculeABS(); |
Risord | 0:807955c8969c | 30 | void getXYZ(int* posXYZ); |
Risord | 0:807955c8969c | 31 | int initAcc(void); |
Risord | 0:807955c8969c | 32 | |
Risord | 0:807955c8969c | 33 | |
Risord | 0:807955c8969c | 34 | |
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 | #endif // ANALYSEURTAB_H |