output only raw data (acceleration, anguler rate, geomagnetism, air pressure)
Dependencies: mbed SDFileSystem ConfigFile
GMS6_CR6/GMS6_CR6.h@34:4bda9af9a0cd, 2015-08-06 (annotated)
- Committer:
- ojan
- Date:
- Thu Aug 06 15:45:48 2015 +0000
- Revision:
- 34:4bda9af9a0cd
- Parent:
- 4:45dc5590abc0
LAURUS_Program_v2.9.0; ; + add RULE3_1; + add "volatile" to some variables like "flag"
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ojan | 1:6cd6d2760856 | 1 | #pragma once |
ojan | 1:6cd6d2760856 | 2 | |
ojan | 1:6cd6d2760856 | 3 | const int BuffSize = 256; |
ojan | 1:6cd6d2760856 | 4 | |
ojan | 1:6cd6d2760856 | 5 | class GMS6_CR6 { |
ojan | 1:6cd6d2760856 | 6 | |
ojan | 1:6cd6d2760856 | 7 | public: |
ojan | 1:6cd6d2760856 | 8 | GMS6_CR6(Serial* ps, Serial* pc); |
ojan | 1:6cd6d2760856 | 9 | ~GMS6_CR6(); |
ojan | 1:6cd6d2760856 | 10 | void INT_Rx(); |
ojan | 1:6cd6d2760856 | 11 | void read(); |
ojan | 1:6cd6d2760856 | 12 | |
ojan | 1:6cd6d2760856 | 13 | char lat_hem, lng_hem; |
ojan | 1:6cd6d2760856 | 14 | float raw_longitude, raw_latitude; |
ojan | 1:6cd6d2760856 | 15 | float longitude, latitude; |
ojan | 1:6cd6d2760856 | 16 | float time; |
ojan | 4:45dc5590abc0 | 17 | int mode; |
ojan | 4:45dc5590abc0 | 18 | int Ns; |
ojan | 1:6cd6d2760856 | 19 | |
ojan | 1:6cd6d2760856 | 20 | private: |
ojan | 1:6cd6d2760856 | 21 | Serial* p_port; |
ojan | 1:6cd6d2760856 | 22 | Serial* p_pc; |
ojan | 1:6cd6d2760856 | 23 | char buff1[BuffSize]; |
ojan | 1:6cd6d2760856 | 24 | char buff2[BuffSize]; |
ojan | 1:6cd6d2760856 | 25 | int pointer; |
ojan | 1:6cd6d2760856 | 26 | volatile int INT_flag; |
ojan | 1:6cd6d2760856 | 27 | }; |