Small improvements to the TPSdot calc
This commit is contained in:
parent
c570e6de78
commit
4d8ca38a05
|
@ -152,12 +152,13 @@ static inline byte correctionAccel()
|
||||||
if( BIT_CHECK(currentStatus.engine, BIT_ENGINE_ACC) )
|
if( BIT_CHECK(currentStatus.engine, BIT_ENGINE_ACC) )
|
||||||
{
|
{
|
||||||
//If it is currently running, check whether it should still be running or whether it's reached it's end time
|
//If it is currently running, check whether it should still be running or whether it's reached it's end time
|
||||||
if( currentLoopTime >= currentStatus.TAEEndTime )
|
if( micros() >= currentStatus.TAEEndTime )
|
||||||
{
|
{
|
||||||
//Time to turn enrichment off
|
//Time to turn enrichment off
|
||||||
BIT_CLEAR(currentStatus.engine, BIT_ENGINE_ACC);
|
BIT_CLEAR(currentStatus.engine, BIT_ENGINE_ACC);
|
||||||
currentStatus.TAEamount = 0;
|
currentStatus.TAEamount = 0;
|
||||||
accelValue = 100;
|
accelValue = 100;
|
||||||
|
currentStatus.tpsDOT = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -173,6 +174,7 @@ static inline byte correctionAccel()
|
||||||
if (TPS_change <= 2)
|
if (TPS_change <= 2)
|
||||||
{
|
{
|
||||||
accelValue = 100;
|
accelValue = 100;
|
||||||
|
currentStatus.tpsDOT = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue