GeekIMU/4.Software/GeekIMUDriver 1.1/Src/SensorImpl.h

57 lines
969 B
C
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#ifndef _SENSORIMPL_H_
#define _SENSORIMPL_H_
#include "quaternion.h"
#ifdef __cplusplus
extern "C"{
Quaternion GetPoseQuat(void);
void UnpackSensor(const UCHAR* buffer, long* x, long* y, long* z);
void GetControllerSensor(unsigned char usb_input_buffer[]);
/*
* 描述 获取偏航角Yaw
*/
float DM_GetYaw(void);
/*
* 描述 获取俯仰角Pitch
*/
float DM_GetPitch(void);
/*
* 描述 获取滚转角Roll
*/
float DM_GetRoll(void);
float invSqrt(float x) ;
void ResetAHRS();
void AHRSupdate(float gx, float gy, float gz, float ax, float ay, float az, float mx, float my, float mz,char useMag,int Dtime);
Vector3 GetMagData();
int ResetHeading(void);
}
#else
void UnpackSensor(const UCHAR* buffer, long* x, long* y, long* z);
void GetControllerSensor(unsigned char usb_input_buffer[]);
__declspec(dllexport) float GetLocX(void);
__declspec(dllexport) float GetLocY(void);
__declspec(dllexport) float GetLocZ(void);
#endif
#endif