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.

Revision:
2:2bc5dd0ab0f0
Parent:
1:c7a984ee3409
--- a/MPU-9250.cpp	Thu Feb 26 17:23:47 2015 +0000
+++ b/MPU-9250.cpp	Fri Feb 27 00:15:00 2015 +0000
@@ -1,10 +1,10 @@
 #include "MPU-9250.h"
 
-degree::degree (PinName sda, PinName scl) : i2c(sda, scl)
+MPU9250::MPU9250 (PinName sda, PinName scl) : i2c(sda, scl)
 {
 }
 
-int degree::start()
+int MPU9250::start()
 {
     i2c.frequency(400000);
     bdf[0] = 0x75;
@@ -24,7 +24,7 @@
     }
 }
 
-void degree::read_data(int a,double *x,double *y,double *z)
+void MPU9250::read_data(int a,double *x,double *y,double *z)
 {
     char data[13] = {0};
     if (a == 0) //引数aが一のときx,y,zの地磁気の強さを返すよ。(単位はuT) If a = 1 This program will return each axis's magnetometer value.(Unit is uT)