21:34

Dependencies:   HCSR04_2 MPU6050_2 mbed SDFileSystem3

Fork of Autoflight2018_8 by 航空研究会

MPU9250/sample.txt

Committer:
HARUKIDELTA
Date:
2018-09-13
Revision:
5:9efd35c9bb2e
Parent:
0:17f575135219

File content as of revision 5:9efd35c9bb2e:

//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]);
    }
}
*/