26 lines
304 B
C
26 lines
304 B
C
#ifndef __ALLDATA_H
|
|
#define __ALLDATA_H
|
|
#include "main.h"
|
|
|
|
typedef struct{
|
|
int16_t accX;
|
|
int16_t accY;
|
|
int16_t accZ;
|
|
int16_t gyroX;
|
|
int16_t gyroY;
|
|
int16_t gyroZ;
|
|
}_st_Mpu;
|
|
|
|
typedef struct{
|
|
float roll;
|
|
float pitch;
|
|
float yaw;
|
|
}_st_AngE;
|
|
|
|
extern _st_Mpu ICM42688;
|
|
extern _st_AngE Angle;
|
|
|
|
#endif
|
|
|
|
|