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

📄 motorcontroller.h

📁 很好c语言编写的pid算法,具有很好的参考价值
💻 H
字号:
////////////////////////////////////////////////////////
//	僼傽僀儖偺愢柧丗儌乕僞乕惂屼僋儔僗僿僢僟
////////////////////////////////////////////////////////
#ifndef __MOTOR_CONTROLLER_H
#define __MOTOR_CONTROLLER_H

#include "Typedef.h"
#include "Cup.h"


////////////////////////////////////////////////////////
//	僪儊僀儞    丗搾偺拲偓乮僴乕僪偑傜傒乯
//	僋儔僗偺愢柧丗儌乕僞乕惂屼僋儔僗
////////////////////////////////////////////////////////
class MotorController
{
///////////////////////////////////////////////////////
//	僨乕僞儊儞僶乕
///////////////////////////////////////////////////////
protected:

///////////////////////////////////////////////////////
//	儊僜僢僪
///////////////////////////////////////////////////////
public:
	// 儌乕僞摦嶌
	VOID activateMotor( USHORT speed )
	{
		Cup * pCup = ::getCupObject();
		pCup->giveSpeed( speed );
	};
	// 儌乕僞乕掆巭
	VOID stopMotor()
	{
		Cup * pCup = ::getCupObject();
		pCup->giveSpeed( 0 );
	};

protected:

};
#endif //__MOTOR_CONTROLLER_H

⌨️ 快捷键说明

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