Parcourir la source

修复功率异常时电压估算异常问题

Ye Jin il y a 1 an
Parent
commit
86a827fd00

+ 2 - 2
User project/3.BasicFunction/Source/canAppl.c

@@ -552,7 +552,7 @@ void Can_voMC_Run_1ms(void) /* parasoft-suppress METRICS-28 "本项目圈复杂
         }
     }
     
-    UWORD TempPower;
+    SWORD TempPower;
     if (FSM2nd_Run_state.state == Exit)
     {
         TempPower = 0;
@@ -596,7 +596,7 @@ void Can_voMC_Run_5ms(void)
 
 void Can_voMC_Run_200ms(void)
 {
-    UWORD TempPower;
+    SWORD TempPower;
     
     if((cp_ulSystickCnt - ulBMS_ComTimeOutCount) > 3000)
     {

+ 1 - 1
User project/4.BasicHardwSoftwLayer/2.BasicSoftwLayer/Include/user.h

@@ -47,7 +47,7 @@ Update Time
 #define MOTOR_WELLING_CITY_48V 0x30
 #define MOTOR_WELLING_MTB_48V  0x31
 
-#define MOTOR_ID_SEL      MOTOR_WELLING_CITY_48V
+#define MOTOR_ID_SEL      MOTOR_WELLING_MTB_48V
 #define GEARSENSOR_ENABLE 1 // 0-Uart,1-GearSensor
 
 // #define TEST  //only use for testing