Alexandre Lemay
/
APP1_s5_A17
PARTYYYY
Diff: Accelerometre.h
- Revision:
- 4:ab14f0e33f2b
- Parent:
- 3:56cd9dff3b5f
- Child:
- 5:70db90b673b9
--- a/Accelerometre.h Mon Sep 04 22:39:02 2017 +0000 +++ b/Accelerometre.h Mon Sep 04 23:39:44 2017 +0000 @@ -3,6 +3,7 @@ class Accelerometre{ + double const PI = 3.14159265359; int const WRITE_DATA = 0x38; int const READ_DATA = 0x39; @@ -12,9 +13,12 @@ Serial pc; public: void writeByte(int Regist,int data); - int readxyzAngle(double *x, double *y, double *z); + void readxyzAngle(double *angle); int readMultiByte(int regist); Accelerometre(); + + private: + double AngleCalculation(double ZValue); }; \ No newline at end of file