HMC実装
Dependencies: mbed MPU6050_2 HMC5883L_2
Diff: MPU9250/sample.txt
- Revision:
- 6:166746820555
- Parent:
- 5:8bfe95431ec0
diff -r 8bfe95431ec0 -r 166746820555 MPU9250/sample.txt --- a/MPU9250/sample.txt Fri Feb 08 09:11:27 2019 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -//This is a sample code to get pitch, roll, yaw in degree from MPU9250; -/* -#include "mbed.h" -#include "MPU9250.h" - -Serial pc(SERIAL_TX,SERIAL_RX); -MPU9250 mpu9250(pinSDA,pinSCL,&pc); - -int main(void){ - float degrees[3]; - - mpu9250.Initialize(); - - while(1){ - mpu9250.sensingPostureAngle(degrees); - Serial.printf("pitch:%f, roll:%f, yaw,%f\n",degrees[0],degrees[1],degrees[2]); - } -} -*/ \ No newline at end of file