From e2d7976859253d9ef13eb8bdfac71335b46ce1f7 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Fri, 24 May 2024 17:30:33 +0800 Subject: [PATCH] fix some bug --- src/api/cmds/device_state_cmd_impl.cpp | 8 ++++++++ src/configs/project_setting.hpp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/api/cmds/device_state_cmd_impl.cpp b/src/api/cmds/device_state_cmd_impl.cpp index 4170850..4e63ff3 100644 --- a/src/api/cmds/device_state_cmd_impl.cpp +++ b/src/api/cmds/device_state_cmd_impl.cpp @@ -50,6 +50,11 @@ json DeviceStateCmdImpl::createSensorDataJson() { // Water immersion sensor report["disinfectant_volume"] = m_deviceIoControlService->getDisinfectantVolume_g(); + report["pressure"][0] = m_deviceIoControlService->getPressureSensorData(1); // 液位 + report["pressure"][1] = m_deviceIoControlService->getPressureSensorData(2); // 空压机压力 + report["pressure"][2] = m_deviceIoControlService->getPressureSensorData(3); // 加液泵 + report["pressure"][3] = m_deviceIoControlService->getPressureSensorData(4); // 喷射泵 + #if (defined PROJECT_TYPE_PIPE_DISINFECTION) report["AirInletProportionalValve"]["state"] = m_deviceIoControlService->AirInletProportionalValve_getState(); @@ -60,6 +65,9 @@ json DeviceStateCmdImpl::createSensorDataJson() { #endif + + + #endif #if (defined PROJECT_TYPE_DRAW_BAR_BOX) diff --git a/src/configs/project_setting.hpp b/src/configs/project_setting.hpp index 3d1d925..2fb904d 100644 --- a/src/configs/project_setting.hpp +++ b/src/configs/project_setting.hpp @@ -33,7 +33,7 @@ #endif #ifdef PROJECT_TYPE_SMALL_SPACE_DISINFECTION -#define DISINFECTANT_BUCKET_CAPACITY 2500 +#define DISINFECTANT_BUCKET_CAPACITY 2800 #define PROJECT_NAME "small_space_disinfection" #define MAX_H2O2_SENSOR_NUM (3) #define MIN_DISINFECTANT_VOLUME 500