2024-11-09 21:39:20 +08:00
|
|
|
|
#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();
|
|
|
|
|
|
2025-01-27 22:28:36 +08:00
|
|
|
|
// <20><><EFBFBD>մ<EFBFBD><D5B4><EFBFBD><EFBFBD><EFBFBD>У<D0A3><D7BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
void clearMagData(void);
|
2024-11-09 21:39:20 +08:00
|
|
|
|
#endif
|