MPU6050のサンプルプログラム2
Dependencies: ConfigFile SDFileSystem mbed
Fork of LAURUS_program by
Diff: GMS6_CR6/GMS6_CR6.h
- Revision:
- 1:6cd6d2760856
- Child:
- 4:45dc5590abc0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GMS6_CR6/GMS6_CR6.h Sun May 24 17:32:47 2015 +0000 @@ -0,0 +1,25 @@ +#pragma once + +const int BuffSize = 256; + +class GMS6_CR6 { + +public: + GMS6_CR6(Serial* ps, Serial* pc); + ~GMS6_CR6(); + void INT_Rx(); + void read(); + + char lat_hem, lng_hem; + float raw_longitude, raw_latitude; + float longitude, latitude; + float time; + +private: + Serial* p_port; + Serial* p_pc; + char buff1[BuffSize]; + char buff2[BuffSize]; + int pointer; + volatile int INT_flag; +}; \ No newline at end of file