Boen_Shi 8be2866433 feat(base): 初始化 MSPM0 开发环境
- 添加头文件和配置文件支持
- 更新.gitignore忽略编译和IDE相关文件
- 添加基础的bsp代码
2026-07-16 14:45:26 +08:00

33 lines
622 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef IMU_H
#define IMU_H
#include "ti_msp_dl_config.h"
class Imu {
public:
struct Data {
float roll;
float pitch;
float yaw;
float ax;
float ay;
float az;
};
static void init(); // 模块初始化
static void inject(); // 数据注入串口、I2C回调函数注入数据
static Data getData();
static float getRoll();
static float getPitch();
static float getYaw();
static float getAx();
static float getAy();
static float getAz();
static uint8_t _buffer;
static Data _data;
};
#endif //IMU_H