#include <STC12C5A60S2.H>
#include "mpu6050dmp.h"
#include "Uart1_mpu6050.h"
#include "upload.h"
void main(void)
{
Delay_ms(100);
UartInit(); //初始化串口
initMPU6050(); //初始化
Delay_ms(100);
TI=1;
while(1)
{
read_FIFO();
Data_Send_Status_01(Pitch,Roll,Yaw);
// Delay_ms(200);
// printf("Pitch=%f,Roll=%f,Yaw=%f,t=%f\n",Pitch,Roll,Yaw,temp);
// printf("gyro_x=%f,gyro_y=%f,gyro_z=%f\n",gyro[0],gyro[1],gyro[2]);
// printf("accel_x=%f,accel_y=%f,accel_z=%f\n",accel[0],accel[1],accel[2]);
// printf("gyro_x=%d",gyro_x);
}
}