Browse Source

feat:转速波动补偿修复

CN\zhangkai71 1 year ago
parent
commit
d0592ab5fe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      User project/2.MotorDrive/Source/spdctrmode.c

+ 2 - 2
User project/2.MotorDrive/Source/spdctrmode.c

@@ -596,10 +596,10 @@ void  scm_voTorqCtrMdTbs(void)
        //swTestIqref  = uart_swTorqRefNm - (((SLONG)swTmpSpdRateLpf.slY.sw.hi * cof_uwJmPu * 2 << 11) / cof_uwFluxPu);  //Q15+Q0+Q11-Q12=Q14
        
        /* Speed fluctuation compensation*/
-//        swTestIqref = uart_swTorqRefNm - swTmpSpdRateLpf.slY.sw.hi;
+        swTestIqref = uart_swTorqRefNm - swTmpSpdRateLpf.slY.sw.hi;
          
        /* Torgque observer */
-       swTestIqref  = uart_swTorqRefNm - scm_stIqLoadLpf.slY.sw.hi;
+//       swTestIqref  = uart_swTorqRefNm - scm_stIqLoadLpf.slY.sw.hi;
     }
     else
     {