MPU6050のサンプルプログラム2

Dependencies:   ConfigFile SDFileSystem mbed

Fork of LAURUS_program by LAURUS

GMS6_CR6/GMS6_CR6.h

Committer:
ojan
Date:
2015-05-24
Revision:
1:6cd6d2760856
Child:
4:45dc5590abc0

File content as of revision 1:6cd6d2760856:

#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;
};