Commit 43d009fb5b2a8e39cf50348f702adb12e28d525e

Authored by 김태훈
1 parent ae10958760
Exists in master and in 2 other branches fhd, fhd-demo

오븐 제어 인터페이스에 시간 설정 메소드 추가

app/gui/oven_control/oven.h
... ... @@ -24,6 +24,7 @@ public slots:
24 24 // virtual void setMode(Oven::Mode mode) = 0;
25 25 virtual void setHumidity(int percentage) = 0;
26 26 virtual void setTemp(int celsius) = 0;
  27 + virtual void setTime(int secs) = 0;
27 28 virtual void setInterTemp(int celsius) = 0;
28 29 virtual void setFan(int rpm) = 0;
29 30  
... ...
app/gui/oven_control/ovencontroller.cpp
... ... @@ -48,6 +48,11 @@ void OvenController::setTemp(int celsius)
48 48 udp->set(TG_HEAT, celsius);
49 49 }
50 50  
  51 +void OvenController::setTime(int secs)
  52 +{
  53 + udp->set(TG_TIME, secs);
  54 +}
  55 +
51 56 void OvenController::setInterTemp(int celsius)
52 57 {
53 58 udp->set(TG_INNER_TEMP, celsius);
... ...
app/gui/oven_control/ovencontroller.h
... ... @@ -25,6 +25,7 @@ public:
25 25 public slots:
26 26 void setHumidity(int percentage);
27 27 void setTemp(int celsius);
  28 + void setTime(int secs);
28 29 void setInterTemp(int celsius);
29 30 void setFan(int rpm);
30 31 void startCooking();
... ...