gyroscope_sdlg.h

来自「中值滤波加提升小波降噪方法」· C头文件 代码 · 共 96 行

H
96
字号
// Gyroscope_sDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES

#define N 32
#define L 4

#if !defined(AFX_GYROSCOPE_SDLG_H__096B8B42_874E_478C_8088_563792BF7138__INCLUDED_)
#define AFX_GYROSCOPE_SDLG_H__096B8B42_874E_478C_8088_563792BF7138__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CGyroscope_sDlg dialog

#define myfabs(a) a>=0 ? a:-a

class CGyroscope_sDlg : public CDialog
{
// Construction
public:
	float flp(float output[]);
	int n;
	float median(float table[32][5]);
	void thresh_soft(float table[32][5]);
	void iadjust(float processing[],int n);
	void db4lift_idwt(float processing[],int n);
	void db4lift_dwt(float processing[],int n);
	float table[32][5];
	float temp[32];
	float TI_Denoise(float signal[]);
	float op1;
	float output[32];

	CString m_str;
	int bt;

	int m_num;
	void InitComm();
	CGyroscope_sDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CGyroscope_sDlg)
	enum { IDD = IDD_GYROSCOPE_S_DIALOG };
	CString	m_expState;
	CMSComm	m_Comm;
	CString	m_xGyro;
	CString	m_yGyro;
	CString	m_zGyro;
	CString	m_xJiaG;
	CString	m_yJiaG;
	CString	m_zJiaG;
	CString	m_xTemp;
	CString	m_yTemp;
	CString	m_zTemp;
	CString	m_time;
	CString	m_xDenoiseSignal;
	CString	m_xSourceSignal;
	CString	m_yDenoiseSignal;
	CString	m_ySourceSignal;
	CString	m_zDenoiseSignal;
	CString	m_zSourceSignal;
	int		m_channelNumber;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGyroscope_sDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CGyroscope_sDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnOnCommMscomm1();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GYROSCOPE_SDLG_H__096B8B42_874E_478C_8088_563792BF7138__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?