GeekIMU/4.Software/GeekIMU Manager GUI 1.2/GeekIMUDriver 1.2/Src/MagCalibrate.h

27 lines
431 B
C

#ifndef _MAG_CALIBRATE_H_
#define _MAG_CALIBRATE_H_
typedef struct _MagData
{
float x;
float y;
float z;
}MagData;
typedef struct _MagCaliParam
{
float xOffset;
float yOffset;
float zOffset;
float xScale;
float yScale;
float zScale;
}MagCaliParam;
MagCaliParam CalculateMagCalibrationParams(MagData _mdata[], int dataSize);
MagCaliParam GetMagDataFormFile();
// 清空磁力计校准缓存数据
void clearMagData(void);
#endif