RobotHardware-UESTC/Hardware/银星机器人底盘/PiRobot-YH_Firmware v1.0/STM32/Lib/IMU/GY65.h

20 lines
268 B
C
Raw Normal View History

2024-01-20 13:19:09 +08:00
#ifndef IMU_GY65_H_
#define IMU_GY65_H_
#include "imu.h"
#include "MPU6050.h"
class GY65 : public IMU
{
public:
2024-01-24 22:08:32 +08:00
virtual bool Init();
virtual void GetData(float* imu_data);
2024-01-20 13:19:09 +08:00
private:
MPU6050 mpu6050;
short ax, ay, az;
short gx, gy, gz;
};
#endif