소스 검색

修正踏频故障检测

Ye Jin 1 년 전
부모
커밋
e5e1f083e1
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      User project/2.MotorDrive/Source/alarm.c
  2. 1 1
      User project/3.BasicFunction/Source/canAppl.c

+ 1 - 1
User project/2.MotorDrive/Source/alarm.c

@@ -1264,7 +1264,7 @@ void alm_voDetec200MS(const ALM_BIKE_IN *in, const ALM_DETEC200MS_COF *coef) /*
     }
     
     /* Bike cadence sensor fault */
-    if(in->uwBikeSpdPu > 0)
+    if(in->uwBikeSpdPu > 950)//5km/h
     {
         if(in->uwTroqPu > ass_stCalCoef.uwAssThreshold)
         {

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

@@ -237,7 +237,7 @@ void Can_voInitMC_Run(void)
     memcpy((uint8_t*)(MC_VerInfo.HW_Version + 12), (uint8_t*)(&MCU_ID_CRC32), 4);
     
     // Software version
-    char chFwVersion[16]="1r0r1_";
+    char chFwVersion[16]="V1r0r2_";
     strncat(chFwVersion,COMMIT_TIME,9);
     strncpy(MC_VerInfo.FW_Version, (char *)chFwVersion, 16);