Mechatro5 / Mbed OS 9Dsensor_test

Dependencies:   BMX055

main.cpp

Committer:
yasunorihirakawa
Date:
2019-12-10
Revision:
1:630fac09c3bd
Parent:
0:532ef32974cf

File content as of revision 1:630fac09c3bd:

#include "mbed.h"
#include "BMX055.h"

BMX055 bmx(D0,D1);

int main()
{
    //bmx.mag_calibration();
    bmx.acc_calibration();
    /*
    while(1)
    {   
        bmx.Get_acc();
        printf("ACC:  %+9.4f, %+9.4f, %+9.4f\r\n", bmx.accel[0], bmx.accel[1], bmx.accel[2]);
        bmx.Get_gyro();
        printf("GYRO: %+9.4f, %+9.4f, %+9.4f\r\n",bmx.gyroscope[0]*125/2048,bmx.gyroscope[1]*125/2048,bmx.gyroscope[2]*125/2048);       
        bmx.Get_mag();
        printf("MAG:  %+9.4f, %+9.4f, %+9.4f\r\n",bmx.magnet[0],bmx.magnet[1],bmx.magnet[2]);
        printf("\n");
        
        wait(0.5);
    }*/   
}