From 8c4dcae2d0aca01c72150146d4fcbcb093a5bb4d Mon Sep 17 00:00:00 2001 From: kyz Date: Tue, 29 Jul 2025 16:17:28 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9=E5=8A=9F=E7=8E=87=E4=BF=A1?= =?utf8?q?=E6=81=AF=E6=B3=A8=E9=87=8A=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- STM32/code/mcu_com/mcu_com_energy.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/STM32/code/mcu_com/mcu_com_energy.c b/STM32/code/mcu_com/mcu_com_energy.c index 3979613d..2bef7987 100644 --- a/STM32/code/mcu_com/mcu_com_energy.c +++ b/STM32/code/mcu_com/mcu_com_energy.c @@ -268,19 +268,21 @@ void Mcu_Energy_Get_vol_info(void) //·â×°¹¦ÂÊÊý¾Ý°ü void Mcu_Energy_Get_power_info(void) { - //×Ü/A/B/C Óй¦¹¦ÂÊ int32 СÊýµãºó3λ + //¹¦ÂʺÍÐèÁ¿´ÓRN¶ÁÈ¡¹ýÀ´ºóÒѾ­°Ñ´ø3¸öСÊýת»»³ÉÁË´ø1¸öСÊý룬ÕâÀïÖ±½ÓÉÏ´«²»ÐèÒªÔÙ»»Ë㣬2025/7/4 + + //×Ü/A/B/C Óй¦¹¦ÂÊ int32 СÊýµãºó1λ g_energy.power.Active_T_D3 = swap_u32( (rn_measure_data.Pw[0] * chipflashpara.PriLinePara.CT_I_D1/10) *chipflashpara.PriLinePara.CT_U_D1/10 ); g_energy.power.Active_A_D3 = swap_u32( (rn_measure_data.Pw[1] * chipflashpara.PriLinePara.CT_I_D1/10) *chipflashpara.PriLinePara.CT_U_D1/10 ); g_energy.power.Active_B_D3 = swap_u32( (rn_measure_data.Pw[2] * chipflashpara.PriLinePara.CT_I_D1/10) *chipflashpara.PriLinePara.CT_U_D1/10 ); g_energy.power.Active_C_D3 = swap_u32( (rn_measure_data.Pw[3] * chipflashpara.PriLinePara.CT_I_D1/10) *chipflashpara.PriLinePara.CT_U_D1/10 ); - ////×Ü/A/B/C ÎÞ¹¦¹¦ÂÊ int32 СÊýµãºó3λ + ////×Ü/A/B/C ÎÞ¹¦¹¦ÂÊ int32 СÊýµãºó1λ g_energy.power.Reactive_T_D3 = swap_u32( (rn_measure_data.Pw[4] * chipflashpara.PriLinePara.CT_I_D1/10) *chipflashpara.PriLinePara.CT_U_D1/10 ); g_energy.power.Reactive_A_D3 = swap_u32( (rn_measure_data.Pw[5] * chipflashpara.PriLinePara.CT_I_D1/10) *chipflashpara.PriLinePara.CT_U_D1/10 ); g_energy.power.Reactive_B_D3 = swap_u32( (rn_measure_data.Pw[6] * chipflashpara.PriLinePara.CT_I_D1/10) *chipflashpara.PriLinePara.CT_U_D1/10 ); g_energy.power.Reactive_C_D3 = swap_u32( (rn_measure_data.Pw[7] * chipflashpara.PriLinePara.CT_I_D1/10) *chipflashpara.PriLinePara.CT_U_D1/10 ); - //×Ü/A/B/C ÊÓÔÚ¹¦ÂÊ int32 СÊýµãºó3λ + //×Ü/A/B/C ÊÓÔÚ¹¦ÂÊ int32 СÊýµãºó1λ g_energy.power.Apparent_T_D3 = swap_u32( (rn_measure_data.Pw[8] * chipflashpara.PriLinePara.CT_I_D1/10) *chipflashpara.PriLinePara.CT_U_D1/10 ); g_energy.power.Apparent_A_D3 = swap_u32( (rn_measure_data.Pw[9] * chipflashpara.PriLinePara.CT_I_D1/10) *chipflashpara.PriLinePara.CT_U_D1/10 ); g_energy.power.Apparent_B_D3 = swap_u32( (rn_measure_data.Pw[10] * chipflashpara.PriLinePara.CT_I_D1/10) *chipflashpara.PriLinePara.CT_U_D1/10 ); -- 2.34.1