Files
player/Project_App_Calendar/App_Src/win/mywin_user_9axis.h
2025-07-05 19:47:28 +08:00

52 lines
814 B
C

#ifndef MYWIN_USER_9AXIS_H__
#define MYWIN_USER_9AXIS_H__
#include "ellipsoid.h"
#include "kalman.h"
typedef struct
{
WIN_TouchWinStruct win;
int timer_20ms;
int timer_refresh;
kalman_struct kal[3]; //kalman 滤波器
float mag_raw[3]; //磁力计原始读数
float fitt_raw[3]; //校准后的数据
float mod; //模
float angle; //方向
ellipsoid_struct ell; //椭球拟合校准
int fitt_on; //校准打开
int suss_num; //成功次数
}WIN_9axisStruct;
WIN_9axisStruct *WIN_Creat9axis (WIN_WindowStruct *base,
void (*msgLoop)(struct _WIN_WindowStruct *win,WIN_MsgStruct *msg),
int x,int y,int x_size,int y_size);
//消息框的消息处理函数
void AXIS_defaultMsgLoop (WIN_9axisStruct *axis,WIN_MsgStruct *msg);
WIN_9axisStruct *AXIS_StartTest(WIN_WindowStruct *base);
#endif