|
@@ -941,7 +941,7 @@ void ass_voAssistCmdDeal(void)
|
|
|
{
|
|
|
tmp_slAssistSpdCmd = (SLONG)ass_stCadAssCoef.swKmhToMSpdPu*(SLONG)ass_MaxSpeed.MaxBikeSpeed>> 4;
|
|
|
}
|
|
|
- #if 0
|
|
|
+ #if 1
|
|
|
tmp_slAssistSpdCmd = (tmp_slAssistSpdCmd << 10) / Bike_RatioCalParam.RatioResult; //前后飞轮传动比
|
|
|
#endif
|
|
|
#else
|
|
@@ -954,7 +954,7 @@ void ass_voAssistCmdDeal(void)
|
|
|
{
|
|
|
tmp_slAssistSpdCmd = (SLONG)ass_stCadAssCoef.swKmhToMSpdPu*(SLONG)ass_stCadAssCoef.uwThrottleMaxBikeSpeed >> 4;
|
|
|
}
|
|
|
- #if 0
|
|
|
+ #if 1
|
|
|
tmp_slAssistSpdCmd = (tmp_slAssistSpdCmd << 10) / Bike_RatioCalParam.RatioResult; //前后飞轮传动比
|
|
|
#endif
|
|
|
#endif
|
|
@@ -1893,13 +1893,13 @@ void ThrottlePowerLimitCal(BOOL ThrottleModeFlag, UWORD BikeSpeed, UWORD BikeSpe
|
|
|
{
|
|
|
if(BikeSpeed > (BikeSpeedLimit + 10))
|
|
|
{
|
|
|
- //if(ThrottlePowerLimit->K_Result > ThrottlePowerLimit->K_DecStep)
|
|
|
- // ThrottlePowerLimit->K_Result -= ThrottlePowerLimit->K_DecStep;
|
|
|
+ if(ThrottlePowerLimit->K_Result > ThrottlePowerLimit->K_DecStep)
|
|
|
+ ThrottlePowerLimit->K_Result -= ThrottlePowerLimit->K_DecStep;
|
|
|
}
|
|
|
else if(BikeSpeed < (BikeSpeedLimit - 10))
|
|
|
{
|
|
|
- //if(ThrottlePowerLimit->K_Result < 16384)
|
|
|
- // ThrottlePowerLimit->K_Result += ThrottlePowerLimit->K_AccStep;
|
|
|
+ if(ThrottlePowerLimit->K_Result < 16384)
|
|
|
+ ThrottlePowerLimit->K_Result += ThrottlePowerLimit->K_AccStep;
|
|
|
}
|
|
|
}
|
|
|
break;
|