⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fuzzy.h

📁 模糊PID控制器
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -