73 lines
1.2 KiB
C
73 lines
1.2 KiB
C
|
|
|||
|
#ifndef _DMCALILAPI_H_
|
|||
|
#define _DMCALIAPI_H_
|
|||
|
#include <string>
|
|||
|
|
|||
|
|
|||
|
#ifdef __cplusplus
|
|||
|
extern "C"{
|
|||
|
|
|||
|
// typedef struct _Quaternion
|
|||
|
// {
|
|||
|
// float w, x, y, z;
|
|||
|
// }Quaternion;
|
|||
|
//
|
|||
|
//
|
|||
|
// typedef struct _Vector3
|
|||
|
// {
|
|||
|
// float x, y, z;
|
|||
|
// }Vector3;
|
|||
|
|
|||
|
// struct _MagCaliParam
|
|||
|
// {
|
|||
|
// float xOffset;
|
|||
|
// float yOffset;
|
|||
|
// float zOffset;
|
|||
|
// float xScale;
|
|||
|
// float yScale;
|
|||
|
// float zScale;
|
|||
|
// };
|
|||
|
// typedef _MagCaliParam MagCaliParam;
|
|||
|
//
|
|||
|
// typedef struct _MVector3
|
|||
|
// {
|
|||
|
// float v[3];
|
|||
|
// }MVector3;
|
|||
|
|
|||
|
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
__declspec(dllexport) int Init(char* );
|
|||
|
|
|||
|
__declspec(dllexport) int CheckDevice(void);
|
|||
|
|
|||
|
__declspec(dllexport) int GyroCali(void);
|
|||
|
|
|||
|
__declspec(dllexport) Vector3 GetGyroCali(void);
|
|||
|
|
|||
|
_declspec (dllexport) MagCaliParam GetMagCali();
|
|||
|
|
|||
|
__declspec(dllexport) int MagCali(void);
|
|||
|
|
|||
|
__declspec(dllexport) int FinishMagCali(void);
|
|||
|
|
|||
|
__declspec(dllexport) int SetMagCali(float x, float y, float z, float x0, float y0, float z0);
|
|||
|
|
|||
|
__declspec(dllexport) MagCaliParam CalculateMagParam();
|
|||
|
|
|||
|
__declspec(dllexport) Vector3 GetPoint(void);
|
|||
|
|
|||
|
__declspec(dllexport) Vector3 GetEulerianAngle(void);
|
|||
|
|
|||
|
__declspec(dllexport) int Correction(void);
|
|||
|
|
|||
|
__declspec(dllexport) Quaternion GetQuaternion(void);
|
|||
|
|
|||
|
}
|
|||
|
#else
|
|||
|
|
|||
|
#endif
|
|||
|
|
|||
|
#endif
|
|||
|
|
|||
|
|
|||
|
|