perform Shift Torque Reduction stuff for high rpm #5608

This commit is contained in:
kifir 2024-10-05 02:08:27 +03:00 committed by kifir23917
parent 9cb878b699
commit e4b269a578
1 changed files with 11 additions and 0 deletions

View File

@ -71,6 +71,17 @@ bool LaunchControlBase::isInsideTpsCondition() const {
}
LaunchCondition LaunchControlBase::calculateRPMLaunchCondition(const float rpm) {
if ((engineConfiguration->launchActivationMode == SWITCH_INPUT_LAUNCH)
&& (engineConfiguration->torqueReductionActivationMode == LAUNCH_BUTTON)
&& engineConfiguration->torqueReductionEnabled
&& (engineConfiguration->torqueReductionArmingRpm <= rpm)
) {
// We need perform Shift Torque Reduction stuff (see
// https://github.com/rusefi/rusefi/issues/5608#issuecomment-2391500472 and
// https://github.com/rusefi/rusefi/issues/5608#issuecomment-2391772899 for details)
return LaunchCondition::NotMet;
}
const int launchRpm = engineConfiguration->launchRpm;
const int preLaunchRpm = launchRpm - engineConfiguration->launchRpmWindow;
if (rpm < preLaunchRpm) {