diff --git a/src/mqtt_report/src/mqtt_report.cpp b/src/mqtt_report/src/mqtt_report.cpp index 2400148..4adbd68 100644 --- a/src/mqtt_report/src/mqtt_report.cpp +++ b/src/mqtt_report/src/mqtt_report.cpp @@ -45,7 +45,7 @@ void Msg_Handler(const mc::msg::CanFrame::SharedPtr msg) { const uint16_t WaterValue = (uint16_t)(((msg->data[3] & 0x3F) << 4) | ((msg->data[2] & 0xF0) >> 4)); float WaterLevel = WaterValue * (-0.235) + 199.75; - info_report.waterLevel = static_cast(std::round(WaterLevel / 180.0f)); + info_report.waterLevel = static_cast(std::round(WaterLevel / 1.8f)); // 液位百分比 break; }