Error checks on the missing tooth end tooth calculation
This commit is contained in:
parent
a9891ad38c
commit
b0c6b40ff6
|
@ -239,8 +239,19 @@ void triggerSetEndTeeth_missingTooth()
|
|||
if(ignition1EndTooth > triggerActualTeeth) { ignition1EndTooth = triggerActualTeeth; }
|
||||
|
||||
ignition2EndTooth = ( (ignition2EndAngle - configPage2.triggerAngle) / triggerToothAngle ) - 1;
|
||||
if(ignition2EndTooth > configPage2.triggerTeeth) { ignition2EndTooth -= configPage2.triggerTeeth; }
|
||||
if(ignition2EndTooth <= 0) { ignition2EndTooth -= configPage2.triggerTeeth; }
|
||||
if(ignition2EndTooth > triggerActualTeeth) { ignition2EndTooth = triggerActualTeeth; }
|
||||
|
||||
ignition3EndTooth = ( (ignition3EndAngle - configPage2.triggerAngle) / triggerToothAngle ) - 1;
|
||||
if(ignition3EndTooth > configPage2.triggerTeeth) { ignition3EndTooth -= configPage2.triggerTeeth; }
|
||||
if(ignition3EndTooth <= 0) { ignition3EndTooth -= configPage2.triggerTeeth; }
|
||||
if(ignition3EndTooth > triggerActualTeeth) { ignition3EndTooth = triggerActualTeeth; }
|
||||
|
||||
ignition4EndTooth = ( (ignition4EndAngle - configPage2.triggerAngle) / triggerToothAngle ) - 1;
|
||||
if(ignition4EndTooth > configPage2.triggerTeeth) { ignition4EndTooth -= configPage2.triggerTeeth; }
|
||||
if(ignition4EndTooth <= 0) { ignition4EndTooth -= configPage2.triggerTeeth; }
|
||||
if(ignition4EndTooth > triggerActualTeeth) { ignition4EndTooth = triggerActualTeeth; }
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue