Tentatively complete boost cut. Needs testing
This commit is contained in:
parent
1fe8f115f8
commit
62e0147b00
|
@ -578,6 +578,9 @@ page = 8
|
|||
dfcoRPM = "The RPM above which DFCO will be active. Typically set a few hundred RPM above maximum idle speed"
|
||||
dfcoHyster = "Hysteresis for DFCO RPM. 200-300 RPM is typical for this, however a higher value may be needed if the RPM is fluctuating around the cutout speed"
|
||||
dfcoTPSThresh= "The TPS value below which DFCO will be active. Typical value is 5%-10%, but higher may be needed if TPS signal is noisy"
|
||||
|
||||
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"
|
||||
|
||||
|
||||
[UserDefinedTS]
|
||||
; Enhanced TunerStudio dialogs can be defined here
|
||||
|
|
|
@ -722,9 +722,9 @@ void loop()
|
|||
|
||||
vvtControl();
|
||||
boostControl(); //Most boost tends to run at about 30Hz, so placing it here ensures a new target time is fetched frequently enough
|
||||
|
||||
idleControl(); //Perform any idle related actions. Even at higher frequencies, running 4x per second is sufficient.
|
||||
}
|
||||
idleControl(); //Perform any idle related actions. Even at higher frequencies, running 4x per second is sufficient.
|
||||
|
||||
//Always check for sync
|
||||
//Main loop runs within this clause
|
||||
if (currentStatus.hasSync && (currentStatus.RPM > 0))
|
||||
|
@ -957,7 +957,7 @@ idleControl(); //Perform any idle related actions. Even at higher frequencies, r
|
|||
//Determine the current crank angle
|
||||
int crankAngle = getCrankAngle(timePerDegree);
|
||||
|
||||
if (fuelOn && currentStatus.PW > 0)
|
||||
if (fuelOn && currentStatus.PW > 0 && !BIT_CHECK(currentStatus.squirt, BIT_SQUIRT_BOOSTCUT))
|
||||
{
|
||||
if (injector1StartAngle > crankAngle)
|
||||
{
|
||||
|
@ -1047,7 +1047,7 @@ idleControl(); //Perform any idle related actions. Even at higher frequencies, r
|
|||
//Check for hard cut rev limit (If we're above the hardcut limit, we simply don't set a spark schedule)
|
||||
//crankAngle = getCrankAngle(timePerDegree); //Refresh with the latest crank angle
|
||||
|
||||
if(ignitionOn && !currentStatus.launchingHard)
|
||||
if(ignitionOn && !currentStatus.launchingHard && !BIT_CHECK(currentStatus.spark, BIT_SPARK_BOOSTCUT))
|
||||
{
|
||||
//if ( (ignition1StartAngle > crankAngle))// && ign1LastRev != startRevolutions)
|
||||
//if ((ignition1StartAngle > crankAngle) == 0)
|
||||
|
|
Loading…
Reference in New Issue