陀螺仪的初级数据获取

This commit is contained in:
bmy
2023-12-22 15:24:39 +08:00
parent 8feb4bab66
commit 2dffcf04f0
7 changed files with 106 additions and 36 deletions

15
app/by_imu.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef _BY_IMU_H__
#define _BY_IMU_H__
#include "stdio.h"
#include "ch32v30x.h"
extern float imu_acc_x;
extern float imu_acc_y;
extern float imu_acc_z;
extern float imu_gyro_x;
extern float imu_gyro_y;
extern float imu_gyro_z;
extern void by_imu_data_get(void);
#endif