Commit 9d8b85c1ff22581e9fa85d2acfb6ddc9a9d673cc
1 parent
2bfd3a0506
Exists in
master
and in
2 other branches
엔지니어 모드 수정
- SGNV 추가 대응
Showing
2 changed files
with
27 additions
and
0 deletions
Show diff stats
app/gui/oven_control/valvetestwindow.cpp
... | ... | @@ -47,6 +47,11 @@ void ValveTestWindow::onDataChanged() |
47 | 47 | else |
48 | 48 | ui->sideValveButton->setText("START"); |
49 | 49 | |
50 | + if (udp->sgnv()) | |
51 | + ui->cleanValveButton->setText("STOP"); | |
52 | + else | |
53 | + ui->cleanValveButton->setText("START"); | |
54 | + | |
50 | 55 | oven_state_t oven; |
51 | 56 | udp->fillData(oven); |
52 | 57 | |
... | ... | @@ -86,6 +91,14 @@ void ValveTestWindow::on_sideValveButton_clicked() |
86 | 91 | sideValveOpen(); |
87 | 92 | } |
88 | 93 | |
94 | +void ValveTestWindow::on_cleanValveButton_clicked() | |
95 | +{ | |
96 | + if (udp->sgnv()) | |
97 | + cleanValveClose(); | |
98 | + else | |
99 | + cleanValveOpen(); | |
100 | +} | |
101 | + | |
89 | 102 | void ValveTestWindow::on_backButton_clicked() |
90 | 103 | { |
91 | 104 | steamValveClose(); |
... | ... | @@ -138,3 +151,13 @@ void ValveTestWindow::sideValveClose() |
138 | 151 | { |
139 | 152 | udp->turnOff(TG_SNV); |
140 | 153 | } |
154 | + | |
155 | +void ValveTestWindow::cleanValveOpen() | |
156 | +{ | |
157 | + udp->turnOn(TG_SGNV); | |
158 | +} | |
159 | + | |
160 | +void ValveTestWindow::cleanValveClose() | |
161 | +{ | |
162 | + udp->turnOff(TG_SGNV); | |
163 | +} | ... | ... |
app/gui/oven_control/valvetestwindow.h
... | ... | @@ -26,6 +26,8 @@ private slots: |
26 | 26 | void quenchingValveClose(); |
27 | 27 | void sideValveOpen(); |
28 | 28 | void sideValveClose(); |
29 | + void cleanValveOpen(); | |
30 | + void cleanValveClose(); | |
29 | 31 | |
30 | 32 | void onDataChanged(); |
31 | 33 | |
... | ... | @@ -36,6 +38,8 @@ private slots: |
36 | 38 | |
37 | 39 | void on_backButton_clicked(); |
38 | 40 | |
41 | + void on_cleanValveButton_clicked(); | |
42 | + | |
39 | 43 | private: |
40 | 44 | Ui::ValveTestWindow *ui; |
41 | 45 | UdpHandler *udp; | ... | ... |