auto-sync
This commit is contained in:
parent
86f4690f94
commit
e58c59de8e
|
@ -62,7 +62,7 @@ void setDodgeNeon1995EngineConfiguration(engine_configuration_s *engineConfigura
|
||||||
engineConfiguration->crankingSettings.baseCrankingFuel = 5;
|
engineConfiguration->crankingSettings.baseCrankingFuel = 5;
|
||||||
|
|
||||||
// set_whole_fuel_map 3
|
// set_whole_fuel_map 3
|
||||||
setWholeFuelMap(engineConfiguration, 3);
|
setWholeFuelMap(engineConfiguration, 9);
|
||||||
setWholeTimingTable(engineConfiguration, 12);
|
setWholeTimingTable(engineConfiguration, 12);
|
||||||
|
|
||||||
// set_cranking_injection_mode 0
|
// set_cranking_injection_mode 0
|
||||||
|
|
|
@ -17,7 +17,7 @@ void configureNeon2003TriggerShape(trigger_shape_s *s) {
|
||||||
|
|
||||||
s->gapBothDirections = true;
|
s->gapBothDirections = true;
|
||||||
|
|
||||||
setTriggerSynchronizationGap(s, 2.91);
|
setTriggerSynchronizationGap2(s, 2.5, 4.5);
|
||||||
|
|
||||||
s->addEvent(base + 26, T_PRIMARY, TV_HIGH);
|
s->addEvent(base + 26, T_PRIMARY, TV_HIGH);
|
||||||
s->addEvent(base + 62, T_PRIMARY, TV_LOW);
|
s->addEvent(base + 62, T_PRIMARY, TV_LOW);
|
||||||
|
|
|
@ -51,7 +51,7 @@ int isTriggerDecoderError(void) {
|
||||||
return errorDetection.sum(6) > 4;
|
return errorDetection.sum(6) > 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool isSynchronizationGap(TriggerState const *shaftPositionState, trigger_shape_s const *triggerShape,
|
static inline bool isSynchronizationGap(TriggerState *shaftPositionState, trigger_shape_s const *triggerShape,
|
||||||
const int currentDuration) {
|
const int currentDuration) {
|
||||||
if (!triggerShape->isSynchronizationNeeded) {
|
if (!triggerShape->isSynchronizationNeeded) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -65,7 +65,7 @@ static inline bool isSynchronizationGap(TriggerState const *shaftPositionState,
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// float gap = 1.0 * currentDuration / shaftPositionState->toothed_previous_duration;
|
// float gap = 1.0 * currentDuration / shaftPositionState->toothed_previous_duration;
|
||||||
// scheduleMsg(&logger, "gap=%f", gap);
|
// scheduleMsg(&logger, "gap=%f @ %d", gap, shaftPositionState->getCurrentIndex());
|
||||||
|
|
||||||
#endif /* ! EFI_PROD_CODE */
|
#endif /* ! EFI_PROD_CODE */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue