Revert "Feb20: 3rd ticket for 4g9x mess #5111"
This reverts commit 61eefa205b
.
This commit is contained in:
parent
f8bd0d7159
commit
760eb889a6
|
@ -26,9 +26,6 @@ void setDefaultBaseEngine() {
|
|||
engineConfiguration->specs.displacement = 2;
|
||||
engineConfiguration->specs.firingOrder = FO_1_3_4_2;
|
||||
|
||||
// todo: extract constant in instant_rpm_calculator.h?
|
||||
engineConfiguration->instantRpmRange = 90;
|
||||
|
||||
engineConfiguration->compressionRatio = 9;
|
||||
|
||||
engineConfiguration->turbochargerFilter = 0.01f;
|
||||
|
|
|
@ -1014,10 +1014,6 @@ void validateConfiguration() {
|
|||
if (engineConfiguration->adcVcc > 5.0f || engineConfiguration->adcVcc < 1.0f) {
|
||||
engineConfiguration->adcVcc = 3.0f;
|
||||
}
|
||||
if (engineConfiguration->instantRpmRange == 0) {
|
||||
// todo: extract constant in instant_rpm_calculator.h?
|
||||
engineConfiguration->instantRpmRange = 90;
|
||||
}
|
||||
engine->preCalculate();
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ float InstantRpmCalculator::calculateInstantRpm(
|
|||
efiAssert(OBD_PCM_Processor_Fault, !cisnan(currentAngle), "eventAngles", 0);
|
||||
|
||||
// Hunt for a tooth ~90 degrees ago to compare to the current time
|
||||
angle_t previousAngle = currentAngle - engineConfiguration->instantRpmRange;
|
||||
angle_t previousAngle = currentAngle - 90;
|
||||
fixAngle(previousAngle, "prevAngle", CUSTOM_ERR_TRIGGER_ANGLE_RANGE);
|
||||
int prevIndex = triggerShape.findAngleIndex(triggerFormDetails, previousAngle);
|
||||
|
||||
|
|
Loading…
Reference in New Issue