ソースを参照

屏蔽故障检测,固定Iq和角频率。

dd 3 週間 前
コミット
3485658048

+ 1 - 1
1.FrameLayer/Source/TimeTask_Event.c

@@ -411,7 +411,7 @@ void  Event_200ms(void)
             alm_stBikeIn.uwThrottleReg = adc_stUpOut.uwThrottleReg;
             alm_stBikeIn.blThrottleExistFlg = TRUE;
             alm_stBikeIn.blMotorNTCExistFlg = FALSE;
-            alm_voDetec200MS(&alm_stBikeIn, &alm_stDetect200MSCoef);
+//            alm_voDetec200MS(&alm_stBikeIn, &alm_stDetect200MSCoef);
         }
     }
 

+ 15 - 15
2.MotorDrive/Source/alarm.c

@@ -731,21 +731,21 @@ void alm_voDetecTBS(ALM_IN *in, ALM_DETECTBS_COF *coef)
         /*=======================================================================
         Hall loss // MPS position loss
         =======================================================================*/
-        if(cp_stFlg.ThetaGetModelSelect == ANG_SWITCHHALL)
-        {
-            if(((in->uwSectorNum == 0)||(in->uwSectorNum == 7)))
-            {
-                alm_stDecCt.ulHallLoss ++;
-            }
-            else
-            {
-                alm_stDecCt.ulHallLoss = 0;
-            }
-        }
-        else
-        {
-            alm_stDecCt.ulHallLoss = 0;
-        }
+//        if(cp_stFlg.ThetaGetModelSelect == ANG_SWITCHHALL)
+//        {
+//            if(((in->uwSectorNum == 0)||(in->uwSectorNum == 7)))
+//            {
+//                alm_stDecCt.ulHallLoss ++;
+//            }
+//            else
+//            {
+//                alm_stDecCt.ulHallLoss = 0;
+//            }
+//        }
+//        else
+//        {
+//            alm_stDecCt.ulHallLoss = 0;
+//        }
 
 #if 0//(EMCDEAL_EN != 0)
     if(EcmDeal.EmcModeFlag==TRUE)

+ 9 - 9
2.MotorDrive/Source/spdctrFSM.c

@@ -326,7 +326,7 @@ void ClzLoop_TbcdownHook(void)
         {
             temptheta += cof_sl360DegreePu;
         }
-        scm_uwAngRefPu=temptheta;
+//        scm_uwAngRefPu=temptheta;
         tstThetaCorrect = scm_uwAngRefPu - rtY.Angle_Filtered;
     }
     else if(cp_stFlg.ThetaGetModelSelect == ANG_RESOLVER)
@@ -364,14 +364,14 @@ void ClzLoop_TbcdownHook(void)
 //    scm_swIqRefPu = cvb_stBrakeOut.swIqRefPu;
 //    scm_uwAngRefPu = cvb_stBrakeOut.uwAngelPu;
 
-    scm_swIqRefPu = 1000;
-//    static UWORD AngleCnt;
-//    AngleCnt += 200;
-//    if(AngleCnt > 32767)
-//    {
-//        AngleCnt = 0;
-//    }
-//    scm_uwAngRefPu = AngleCnt;
+    scm_swIqRefPu = -500;
+    static UWORD AngleCnt;
+    AngleCnt += 200;
+    if(AngleCnt > 32767)
+    {
+        AngleCnt = 0;
+    }
+    scm_uwAngRefPu = AngleCnt;
 
     if(cvb_stBrakeIn.uwVdcLpfPu >= cvb_stBrakeCoef.uwVdcStartCvbPu)
     {