|
@@ -326,7 +326,7 @@ void ClzLoop_TbcdownHook(void)
|
|
{
|
|
{
|
|
temptheta += cof_sl360DegreePu;
|
|
temptheta += cof_sl360DegreePu;
|
|
}
|
|
}
|
|
- scm_uwAngRefPu=temptheta;
|
|
|
|
|
|
+// scm_uwAngRefPu=temptheta;
|
|
tstThetaCorrect = scm_uwAngRefPu - rtY.Angle_Filtered;
|
|
tstThetaCorrect = scm_uwAngRefPu - rtY.Angle_Filtered;
|
|
}
|
|
}
|
|
else if(cp_stFlg.ThetaGetModelSelect == ANG_RESOLVER)
|
|
else if(cp_stFlg.ThetaGetModelSelect == ANG_RESOLVER)
|
|
@@ -364,14 +364,14 @@ void ClzLoop_TbcdownHook(void)
|
|
// scm_swIqRefPu = cvb_stBrakeOut.swIqRefPu;
|
|
// scm_swIqRefPu = cvb_stBrakeOut.swIqRefPu;
|
|
// scm_uwAngRefPu = cvb_stBrakeOut.uwAngelPu;
|
|
// 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)
|
|
if(cvb_stBrakeIn.uwVdcLpfPu >= cvb_stBrakeCoef.uwVdcStartCvbPu)
|
|
{
|
|
{
|