Allow the hard launch and flat shift cuts to operate below the engine Protection min RPM

This commit is contained in:
Josh Stewart 2020-10-20 10:56:03 +11:00
parent dc18ea91c1
commit e4ecd00618
2 changed files with 6 additions and 1 deletions

View File

@ -1871,6 +1871,11 @@ menuDialog = main
launchPin = "The ARDUINO pin that the clutch switch is connected to. This is NOT the pin on the connector, but the pin it relates to on the arduino"
launchHiLo = "Whether the signal is High or Low when the clutch pedal is engaged. For a ground switching input (Most clutch switches), this should be LOW"
lnchPullRes = "Whether the internal pullup resistor is enabled or left floating. For a ground switching input (Most clutch switches), select Pullup. For a 0v-5v input, select Floating"
lnchCtrlTPS = "The minimum RPM that launch control will engage at"
lnchSoftLim = "The RPM point that the launch control ignition timing adjustment will engage (When under launch conditions). Should be below the hard rev limit RPM"
lnchRetard = "When under launch conditions (Eg Clutch engaged) the ignition timing will be set to this when above the Soft rev limit. This will override any other ignition modifiers"
lnchHardLim = "The RPM point above which the fuel and/or ignition will be cut when launch is active (Eg Clutch engaged). See the Engine Protection dialog to set whether it is fuel, ignition or both that are cut."
lnchFuelAdd = "The additional fuel % that will be added during Soft and Hard launch conditions. Set to 0 for no fuel modifier."
ignBypassPin = "The ARDUINO pin that the ignition bypass is connected to. This is NOT the pin on the connector, but the pin it relates to on the arduino"
ignBypassEnable = "If turned on, a ground signal will be output during cranking on the specified pin. This is used to bypass the Speeduino ignition control during cranking."
ignCranklock = "On certain low resolution ignition patterns, the cranking timing can be locked to occur when a pulse is recieved."

View File

@ -781,7 +781,7 @@ void loop()
//Check for any of the engine protections or rev limiters being turned on
if(checkEngineProtect() || currentStatus.launchingHard || currentStatus.flatShiftingHard)
{
if(currentStatus.RPMdiv100 > configPage4.engineProtectMaxRPM)
if( (currentStatus.RPMdiv100 > configPage4.engineProtectMaxRPM) || currentStatus.launchingHard || currentStatus.flatShiftingHard) //Ugly, but the launch/flat shift check needs to be here as well to prevent these limiters not happening when under the the Engine Protection min rpm
{
if( (configPage2.hardCutType == HARD_CUT_FULL) || (configPage6.engineProtectType == PROTECT_CUT_FUEL) )
{