Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Accelerometre.h
00001 #ifndef Accelerometre_H 00002 #define Accelerometre_H 00003 00004 #include "ADXL345_I2C.h" 00005 #include "string.h" 00006 00007 00008 00009 class Accelerometre 00010 { 00011 //// déclaration des attributs/méthode privés //// 00012 private: 00013 int readings[3]; 00014 int readingPrec[3]; 00015 00016 int i;// 00017 char position; 00018 ADXL345_I2C *_acc; 00019 //string resultext; 00020 00021 //// déclaration des attributs/méthode publique //// 00022 public: 00023 Accelerometre(); // Constructeur par défaut 00024 Accelerometre(ADXL345_I2C * acc); 00025 ~Accelerometre(); // Destructeur 00026 00027 00028 char getPosition(); 00029 void calculeABS(); 00030 void getXYZ(int* posXYZ); 00031 int initAcc(void); 00032 00033 00034 00035 00036 00037 00038 00039 }; 00040 00041 #endif // ANALYSEURTAB_H
Generated on Mon Jul 18 2022 23:03:00 by
1.7.2