fuzzy.h

来自「模糊PID控制器」· C头文件 代码 · 共 47 行

H
47
字号
// FUZZY.h : main header file for the PROJECT_NAME application
//

#pragma once

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols


// CFUZZYApp:
// See FUZZY.cpp for the implementation of this class
//

class CFUZZYApp : public CWinApp
{
public:
	CFUZZYApp();

	struct  CCPidStruct  m_pid_para;
	struct  pid_struct   m_pid[32];
	short   accel_value[8*8];
	int    channel;

	void fuzzy_step(long *crisp_inputs, long *crisp_outputs);
	void fuzzify_input(int in_index,long in_val);
	long get_membership_value(int in_index,int mf_index,long in_val);
	void eval_rule(int rule_index);
	long defuzzify_output(int out_index,long *inputs);
	void PidRun(int n);
	void PidDot(int n);
	void SavePidPara();
	void LoadPidPara();


// Overrides
	public:
	virtual BOOL InitInstance();

// Implementation

	DECLARE_MESSAGE_MAP()
};

extern CFUZZYApp theApp;

⌨️ 快捷键说明

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