From 2430b9630d713181f62b1035a3942b1b3dc2f8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B7=E5=BA=8A=E5=B0=B1=E7=8A=AF=E5=9B=B0?= <11730503+psx123456@user.noreply.gitee.com> Date: Fri, 21 Feb 2025 10:32:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9HY=E5=8D=8F=E8=AE=AE=E7=94=B5?= =?UTF-8?q?=E6=B1=A0=E6=95=B0=E6=8D=AE=E6=8A=A5=E8=BF=94=E5=9B=9E=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APP/businessLogic/Src/bl_usart.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/APP/businessLogic/Src/bl_usart.c b/APP/businessLogic/Src/bl_usart.c index 5d9d94c..2898964 100644 --- a/APP/businessLogic/Src/bl_usart.c +++ b/APP/businessLogic/Src/bl_usart.c @@ -3203,7 +3203,7 @@ BOOL analysisBatteryStatusHY(void) temp = getDischargCurrent(); memcpy(replay_pack, &temp, sizeof(float)); replay_pack += 4; - //充电电流 + //充电电流1 // *(float *)(replay_pack) = getChargCurrent(); temp = getChargCurrent(); memcpy(replay_pack, &temp, sizeof(float)); @@ -3213,26 +3213,28 @@ BOOL analysisBatteryStatusHY(void) temp = getSOC(); memcpy(replay_pack, &temp, sizeof(float)); replay_pack += 4; - //充电开路电压 + //充电开路电压1 // *(float *)(replay_pack) = getSolarOpenCircuitVoltage(); temp = getSolarOpenCircuitVoltage(); memcpy(replay_pack, &temp, sizeof(float)); replay_pack += 4; - //充电开关状态 + //充电开关状态1 *(replay_pack) = getChargMosState(); replay_pack += 1; - //充电电流 + //充电电流2 // *(float *)(replay_pack) = getChargCurrent(); - temp = getChargCurrent(); + // temp = getChargCurrent(); + temp = 0; memcpy(replay_pack, &temp, sizeof(float)); replay_pack += 4; - //充电开路电压 + //充电开路电压2 // *(float *)(replay_pack) = getSolarOpenCircuitVoltage(); - temp = getSolarOpenCircuitVoltage(); + // temp = getSolarOpenCircuitVoltage(); + temp = 0; memcpy(replay_pack, &temp, sizeof(float)); replay_pack += 4; - //充电开关状态 - *(replay_pack) = getChargMosState(); + //充电开关状态2 + *(replay_pack) = 0x00; replay_pack += 1; //工作温度 // *(float *)(replay_pack) = getHighSideMosTemperature();