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

Dependencies:   ConfigFile SDFileSystem mbed

Fork of LAURUS_program by LAURUS

GMS6_CR6/GMS6_CR6.h

Committer:
ojan
Date:
2015-06-11
Revision:
4:45dc5590abc0
Parent:
1:6cd6d2760856

File content as of revision 4:45dc5590abc0:

#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;
    int mode;
    int Ns;
      
private: 
    Serial* p_port;
    Serial* p_pc;
    char buff1[BuffSize];
    char buff2[BuffSize];
    int pointer;
    volatile int INT_flag;
};