Skip to content

Commit ca242ad

Browse files
committed
Experimental options for Nissan 360 6cyl
1 parent 94a28de commit ca242ad

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

speeduino/decoders.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2967,7 +2967,8 @@ void triggerPri_Nissan360(void)
29672967
{
29682968
curTime = micros();
29692969
curGap = curTime - toothLastToothTime;
2970-
//if ( curGap < triggerFilterTime ) { return; }
2970+
if ( curGap < triggerFilterTime ) { return; }
2971+
29712972
toothCurrentCount++; //Increment the tooth counter
29722973
BIT_SET(decoderState, BIT_DECODER_VALID_TRIGGER); //Flag this pulse as being a valid trigger (ie that it passed filters)
29732974

@@ -2984,7 +2985,7 @@ void triggerPri_Nissan360(void)
29842985
currentStatus.startRevolutions++; //Counter
29852986
}
29862987
//Recalc the new filter value
2987-
//setFilter(curGap);
2988+
setFilter(curGap);
29882989

29892990
//EXPERIMENTAL!
29902991
if(configPage2.perToothIgn == true)
@@ -3088,9 +3089,9 @@ void triggerSec_Nissan360(void)
30883089
}
30893090
else if(configPage2.nCylinders == 6)
30903091
{
3091-
if(secondaryDuration == 4)
3092+
if( (secondaryDuration >= 3) && (secondaryDuration <= 5) ) //Duration of window = 4 primary teeth
30923093
{
3093-
//toothCurrentCount = 304;
3094+
toothCurrentCount = 124; //End of smallest window is after 60+60+4 primary teeth
30943095
}
30953096
} //Cylinder count
30963097
} //use resync

0 commit comments

Comments
 (0)