📄 gomapot.h
字号:
////////////////////////////////////////////////////////
// 僼傽僀儖偺愢柧丗GOMA 億僢僩偺僔僗僥儉僋儔僗僿僢僟
////////////////////////////////////////////////////////
#ifndef __GOMA_POT_H
#define __GOMA_POT_H
#include "Typedef.h"
#include "TemperatureMonitor.h"
#include "SensorInfo.h"
#include "HeaterController.h"
#include "TemperatureController.h"
#include "PIDController.h"
#include "OnOffController.h"
#include "PouringController.h"
#include "PouringForTea.h"
#include "PouringForCoffee.h"
#include "PowerSaverByTimeTable.h"
#include "RealTimeClock.h"
#include "UserInterface.h"
////////////////////////////////////////////////////////
// 僪儊僀儞 丗G-2000 僔僗僥儉
// 僋儔僗偺愢柧丗GOMA 億僢僩偺僔僗僥儉
////////////////////////////////////////////////////////
class GomaPot
{
protected:
///////////////////////////////////////////////////////
// 掕悢掕媊
///////////////////////////////////////////////////////
#define CONTROL_PERIOD (60) // 搾暒偟偺惂屼扨埵帪娫
///////////////////////////////////////////////////////
// 僨乕僞儊儞僶乕
///////////////////////////////////////////////////////
protected:
//拲偖
MotorController motorControllerObj; // 儌乕僞乕惂屼
PouringController pouringControllerObj; // 偍搾拲偓惂屼
PouringForCoffee pourForCoffeeObj; // 僐乕僸乕傪拲偖
PouringForTea pourForTeaObj; // 偍拑傪拲偖
//壏搙娔帇
TemperatureMonitor monitorTemperatureObj; // 壏搙娔帇
SensorInfo sensorInfoObj; // 僙儞僒忣曬
HeaterController heaterObj; // 僸乕僞乕惂屼
PIDController PIDControlObj; // PID 壏搙惂屼
OnOffController onOffControlObj; // ON-OFF 壏搙惂屼
//愡揹儌乕僪
PowerSaverByTimeTable powerSaverObj; // 愡揹儌乕僪
//儐乕僓乕僀儞僞僼僃乕僗
TemperatureSelector tempSelect; // 愝掕壏搙庢摼
PouringSelector pouringSelectorObj; // 拲偓偐偨娗棟
PourButton pourButtonObj; // 拲偖儃僞儞
BoilButton boilButtonObj; // 暒摣儃僞儞
PowerSaveButton powerSaveButtonObj; // 愡揹儃僞儞
RealTimeClock realTimeClockObj; // 儕傾儖僞僀儉僋儘僢僋
///////////////////////////////////////////////////////
// 儊僜僢僪
///////////////////////////////////////////////////////
public:
//惗惉
VOID create();
//壏搙娔帇僞僗僋
VOID controlTempTask( INT StaCd )
{
this->monitorTemperatureObj.monitorTemperatureTask( StaCd );
}
//偍搾拲偓僞僗僋
VOID pouringTask( INT StaCd )
{
this->pouringControllerObj.pouringTask( StaCd );
}
};
///////////////////////////////////////////////////////
// 僌儘乕僶儖娭悢
///////////////////////////////////////////////////////
//壏搙娔帇僞僗僋
VOID monitorTempMain( INT StaCd );
// 僔僗僥儉僆僽僕僃僋僩庢摼
GomaPot * getGomaObj( );
#endif // __GOMA_POT_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -