ASCII 출력모드에서 센서 데이터를 parsing하는 라이브러리 및 예제입니다.
https://github.com/
Arduino-EBIMU_9DOFV2-Library
Arduino Library for E2BOX EBIMU-9DOFV2 AHRS Module(http://www.e2box.co.kr/124)
Features | Description |
---|---|
getEulerAngles() | Get Roll, Pitch, Yaw |
getQuaternion() | Get Quaternion |
getGyro() | Get Roll, Pitch, Yaw Gyros |
getEulerAnglesGyro() | Get Euler Angles and Gyros simultaneously |
How to Use
You shoud change serial pin configuration, which is at the top of EBIMU.h header, to fit to your serial configuration.
#include "Arduino.h"
#define EBIMU_SERIAL_PIN 1 //here!
class EBIMU{
public:
EBIMU();
void initialize(int baudrate);
uint8_t getEulerAngles(float *data);
uint8_t getQuaternion(float *data);
uint8_t getGyro(float *data);
uint8_t getEulerAnglesGyro(float *data, float *data2);
private:
};