From cbd11e758fc0a9d8741449522601706bbfbbd96f Mon Sep 17 00:00:00 2001 From: Hugo Jean Ponsin Date: Tue, 28 Jul 2026 09:23:23 +0200 Subject: [PATCH] renaming in settings --- src/device/handlers/DemandHandler.cpp | 14 -------------- src/device/handlers/SettingsHandlerConfig.h | 14 +++++++------- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/src/device/handlers/DemandHandler.cpp b/src/device/handlers/DemandHandler.cpp index ce4e2a7..ca894a2 100644 --- a/src/device/handlers/DemandHandler.cpp +++ b/src/device/handlers/DemandHandler.cpp @@ -97,38 +97,24 @@ bool DemandHandler::setHotlink() { to_watch.watch([&](midas::odb &arg) { switch (arg.get_last_index()) { case static_cast(ParameterIndex::MINIMAL_PRESSURE): - printf("Out of scope : DEMAND HANDLER MINIMAL_PRESSURE\n"); - pullMinimalPressure(); break; case static_cast(ParameterIndex::MAXIMAL_PRESSURE): - printf("Out of scope : DEMAND HANDLER MAXIMAL_PRESSURE\n"); - pullMaximalPressure(); break; case static_cast(ParameterIndex::CONSTANTE_1): - printf("Out of scope : DEMAND HANDLER CONSTANTE_1\n"); - pullConstante1(); break; case static_cast(ParameterIndex::CONSTANTE_2): - printf("Out of scope : DEMAND HANDLER CONSTANTE_2\n"); - pullConstante2(); break; case static_cast(ParameterIndex::PRESSURE_CONTROL_MODE): - printf("Out of scope : DEMAND HANDLER PRESSURE_CONTROL_MODE\n"); - pullPressureControlMode(); break; case static_cast(ParameterIndex::SET_PRESSURE): - printf("Out of scope : DEMAND HANDLER SET_PRESSURE\n"); - pullSetPressure(); break; default: - printf("Out of scope : DEMAND HANDLER\n"); - // Update out of scope, discarded break; } diff --git a/src/device/handlers/SettingsHandlerConfig.h b/src/device/handlers/SettingsHandlerConfig.h index 404b5b8..60d048d 100644 --- a/src/device/handlers/SettingsHandlerConfig.h +++ b/src/device/handlers/SettingsHandlerConfig.h @@ -6,14 +6,14 @@ namespace SettingsHandlerConfig { const std::string PATH_PREFIX = "/Equipment/"; -const std::string PATH_SUFFIX = "/Settings/Devices/MITCPRESSC/DD/"; +const std::string PATH_SUFFIX = "/Settings/Devices/ItcPressureOptimizer/DD/"; -const std::string EQUIPMENT_NAME = "MITC_Equipment"; -const std::string OUTPUT_PRESSURE_SP_INDEX = "MITC_OutputPressSPIndex"; -const std::string INPUT_SP_INDEX = "MITC_InputVarioxSPIndex"; -const std::string INPUT_TEMPERATURE_INDEX = "MITC_InputVarioxTempIndex"; -const std::string INPUT_POWER_INDEX = "MITC_InputVarioxPowIndex"; -const std::string TIME_WINDOW = "Average_Power_Time_Window"; +const std::string EQUIPMENT_NAME = "Equipment name"; +const std::string OUTPUT_PRESSURE_SP_INDEX = "Output Pressure SetPoint Index"; +const std::string INPUT_SP_INDEX = "Input SetPoint Index "; +const std::string INPUT_TEMPERATURE_INDEX = "Input Temperature Index"; +const std::string INPUT_POWER_INDEX = "Input Power Index"; +const std::string TIME_WINDOW = "Average Power Time Window"; const std::string DEFAULT_EQUIPMENT_NAME = ""; const int DEFAULT_INDEX_VALUE = -1;