|
|
@ -8,7 +8,6 @@ |
|
|
|
using namespace iflytop; |
|
|
|
using namespace disinfection; |
|
|
|
|
|
|
|
#define DEFAULT_BLOWSER_LEVEL 90
|
|
|
|
#define DVALUE_COMPUTEPERIOD_TIME_S (10.0)
|
|
|
|
|
|
|
|
#define SETTING_DB SettingDBDao::ins()
|
|
|
@ -444,7 +443,7 @@ void DisinfectionCtrlService::processStateDehumidificationBeforeDisinfection(Dis |
|
|
|
tryLogState(true); |
|
|
|
ZASSERT(PORT.isDT100N()); |
|
|
|
|
|
|
|
dics->Blower_ctrl(DEFAULT_BLOWSER_LEVEL); |
|
|
|
dics->Blower_ctrl(DeviceExtSettingV2Dao::ins()->getBlowerDefaultVelLevel()); |
|
|
|
usleep(100 * 1000); |
|
|
|
dics->ExtChSelector_trySelectCh(kext_ch_dehumidification); |
|
|
|
s_remaintime = -1; |
|
|
@ -476,18 +475,18 @@ void DisinfectionCtrlService::processStatePreheat(DisinfectionEvent* event) { |
|
|
|
if (event->event == kevent_enter_state) { |
|
|
|
tryLogState(true); |
|
|
|
|
|
|
|
// dics->Blower_ctrl(90);
|
|
|
|
// usleep(1000 * 1000)
|
|
|
|
dics->Blower_ctrl(DeviceExtSettingV2Dao::ins()->getBlowerDefaultVelLevel()); |
|
|
|
usleep(1000 * 1000); |
|
|
|
dics->Heater_ctrl(100); |
|
|
|
s_remaintime = getSettingAsInt(SettingId::pre_heat_time_s); |
|
|
|
s_remaintime = getSettingAsInt(SettingId::pre_heat_time_min) * 60; |
|
|
|
} else if (event->event == kevent_exit_state) { |
|
|
|
// dics->Blower_ctrl(0);
|
|
|
|
// usleep(1000 * 1000);
|
|
|
|
dics->Blower_ctrl(0); |
|
|
|
usleep(1000 * 1000); |
|
|
|
dics->Heater_ctrl(0); |
|
|
|
|
|
|
|
tryLogState(true); |
|
|
|
} else if (event->event == kevent_tmr_1s) { |
|
|
|
int preHeatTimeS = getSettingAsInt(SettingId::pre_heat_time_s); |
|
|
|
int preHeatTimeS = getSettingAsInt(SettingId::pre_heat_time_min) * 60; |
|
|
|
s_remaintime--; |
|
|
|
if (s_remaintime <= 0) { |
|
|
|
s_remaintime = 0; |
|
|
@ -510,14 +509,10 @@ void DisinfectionCtrlService::processStateDisinfection(DisinfectionEvent* event) |
|
|
|
} |
|
|
|
dics->ExtChSelector_trySelectCh(kext_ch_disinfection); |
|
|
|
dics->AC_ctrl(1); |
|
|
|
dics->Blower_ctrl(DEFAULT_BLOWSER_LEVEL); |
|
|
|
dics->Blower_ctrl(DeviceExtSettingV2Dao::ins()->getBlowerDefaultVelLevel()); |
|
|
|
dics->Heater_ctrl(1); |
|
|
|
injectPumpSet(getSettingAsInt(SettingId::injection_pump_speed)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s_remaintime = m_tlog * 60 * 60 * 2; |
|
|
|
} else if (event->event == kevent_exit_state) { |
|
|
|
s_isDisinfectionTakeBreak = false; |
|
|
@ -659,7 +654,7 @@ void DisinfectionCtrlService::processStateEmpytLiquidFromTheLine(DisinfectionEve |
|
|
|
void DisinfectionCtrlService::processStateDehumidificationAfterDisinfection(DisinfectionEvent* event) { |
|
|
|
if (event->event == kevent_enter_state) { |
|
|
|
tryLogState(true); |
|
|
|
dics->Blower_ctrl(DEFAULT_BLOWSER_LEVEL); |
|
|
|
dics->Blower_ctrl(DeviceExtSettingV2Dao::ins()->getBlowerDefaultVelLevel()); |
|
|
|
dics->ExtChSelector_trySelectCh(kext_ch_dehumidification); |
|
|
|
s_remaintime = -1; |
|
|
|
} else if (event->event == kevent_exit_state) { |
|
|
@ -691,7 +686,7 @@ void DisinfectionCtrlService::processStateDegradation(DisinfectionEvent* event) |
|
|
|
if (event->event == kevent_enter_state) { |
|
|
|
tryLogState(true); |
|
|
|
dics->ExtChSelector_trySelectCh(kext_ch_degradation); |
|
|
|
dics->Blower_ctrl(DEFAULT_BLOWSER_LEVEL); |
|
|
|
dics->Blower_ctrl(DeviceExtSettingV2Dao::ins()->getBlowerDefaultVelLevel()); |
|
|
|
s_remaintime = -1; |
|
|
|
} else if (event->event == kevent_exit_state) { |
|
|
|
dics->Blower_close(); |
|
|
|