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

25 lines
380 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();
#endif