FSG / IMU_code_

Fork of IMU_code_7_14 by Troy Holley

Committer:
mdavis30
Date:
Fri Jul 21 13:29:26 2017 +0000
Revision:
3:232de5807dac
Parent:
1:0672f84101e4

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mdavis30 0:22fc81041056 1 #ifndef IMU_CODE_H
mdavis30 0:22fc81041056 2 #define IMU_CODE_H
mdavis30 0:22fc81041056 3
mdavis30 0:22fc81041056 4 #include <string>
mdavis30 0:22fc81041056 5 using namespace std;
mdavis30 0:22fc81041056 6
mdavis30 0:22fc81041056 7 class IMU_code
mdavis30 0:22fc81041056 8 {
mdavis30 0:22fc81041056 9 //CLASS VARIABLES and DEFINITIONS
mdavis30 1:0672f84101e4 10 //const double GRAVITY = 9.80665;
mdavis30 0:22fc81041056 11
mdavis30 0:22fc81041056 12 #define NUMDESCRIPTS 4
mdavis30 0:22fc81041056 13 #define MAXPACKETSIZE 100
mdavis30 0:22fc81041056 14 #define SAMPLE_RATE 20 //IMU sample rate
mdavis30 0:22fc81041056 15
mdavis30 0:22fc81041056 16 public:
mdavis30 0:22fc81041056 17 IMU_code(); //pass variables to a constructor (don't need anything passed to it)
mdavis30 0:22fc81041056 18 string IMU_run(); //function ()
mdavis30 1:0672f84101e4 19 float IMU_pitch(); //temporary change
mdavis30 3:232de5807dac 20 float IMU_yaw();
mdavis30 0:22fc81041056 21 };
mdavis30 0:22fc81041056 22
mdavis30 0:22fc81041056 23 #endif /* IMU_CODE_H_ */