25 lines
370 B
C
25 lines
370 B
C
|
#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:
|
||
|
virtual bool init();
|
||
|
virtual void get_data(float imu_data[9]);
|
||
|
private:
|
||
|
ADXL345 accel;
|
||
|
ITG3200 gyro;
|
||
|
HMC5883L mag;
|
||
|
|
||
|
short ax, ay, az;
|
||
|
short gx, gy, gz;
|
||
|
short mx, my, mz;
|
||
|
};
|
||
|
|
||
|
#endif
|