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.
Fork of IMU_code_7_14 by
IMU_code.h@0:22fc81041056, 2017-06-09 (annotated)
- Committer:
- mdavis30
- Date:
- Fri Jun 09 17:31:10 2017 +0000
- Revision:
- 0:22fc81041056
- Child:
- 1:0672f84101e4
working and doesn't move when reset
Who changed what in which revision?
| User | Revision | Line number | New 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 | 0:22fc81041056 | 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 | 0:22fc81041056 | 19 | }; |
| mdavis30 | 0:22fc81041056 | 20 | |
| mdavis30 | 0:22fc81041056 | 21 | #endif /* IMU_CODE_H_ */ |
