This is a library of MPU-9250 9 axis sensor.

Hi,I'm Wataru Nakata. I am a student of Nagaoka National College of Technology ,JAPAN . I am a member of robotics club. So I'm using mbeds for robot controlling.

MPU-9250.h

Committer:
WAT34
Date:
2015-02-27
Revision:
3:73ca792a77af
Parent:
2:2bc5dd0ab0f0

File content as of revision 3:73ca792a77af:

#ifndef MPU9250
#define MPU9250
#define addr 0xD0
#define raddr 0xD1
#define maddr 0x18
#define mraddr 0x19
#include "mbed.h"
#define pi 3.1415926535
class MPU9250 {
public:
    MPU9250 (PinName sda , PinName scl );
    int start(void);
    void read_data(int a,double *x,double *y,double *z);
private:
    I2C i2c;
    char bdf[2];
};
#endif