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

25 lines
369 B
C
Raw Permalink Normal View History

2024-01-20 13:19:09 +08:00
#ifndef IMU_GY85_H_
#define IMU_GY85_H_
#include "imu.h"
#include "ADXL345.h"
#include "HMC5883L.h"
#include "ITG3200.h"
class GY85 : public IMU
{
public:
2024-01-24 22:08:32 +08:00
virtual bool Init();
virtual void GetData(float imu_data[9]);
2024-01-20 13:19:09 +08:00
private:
ADXL345 accel;
ITG3200 gyro;
HMC5883L mag;
short ax, ay, az;
short gx, gy, gz;
short mx, my, mz;
};
#endif