auto-sync
This commit is contained in:
parent
4695da888f
commit
4eb6ce6164
|
@ -117,6 +117,8 @@ case TT_TOOTHED_WHEEL_60_2:
|
|||
return "TT_TOOTHED_WHEEL_60_2";
|
||||
case TT_ONE_PLUS_TOOTHED_WHEEL_60_2:
|
||||
return "TT_ONE_PLUS_TOOTHED_WHEEL_60_2";
|
||||
case TT_ONE:
|
||||
return "TT_ONE";
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -128,6 +128,7 @@ typedef enum {
|
|||
|
||||
TT_ONE_PLUS_ONE = 16,
|
||||
TT_ONE_PLUS_TOOTHED_WHEEL_60_2 = 17,
|
||||
TT_ONE = 18,
|
||||
|
||||
Force_4b_trigger_type = ENUM_32_BITS,
|
||||
} trigger_type_e;
|
||||
|
|
|
@ -495,7 +495,7 @@ static void setTriggerType(int value) {
|
|||
|
||||
static void setToothedWheel(int total, int skipped) {
|
||||
scheduleMsg(&logger, "toothed: total=%d/skipped=%d", total, skipped);
|
||||
setToothedWheelConfiguration(&engine->triggerShape, total, skipped, engineConfiguration);
|
||||
setToothedWheelConfiguration(&engine->triggerShape, total, skipped, engineConfiguration->operationMode);
|
||||
// initializeTriggerShape(&logger, engineConfiguration, engineConfiguration2);
|
||||
incrementGlobalConfigurationVersion();
|
||||
doPrintConfiguration(engine);
|
||||
|
|
|
@ -354,6 +354,10 @@ void initializeTriggerShape(Logging *logger, engine_configuration_s const *engin
|
|||
configureOnePlus60_2(triggerShape, engineConfiguration->operationMode);
|
||||
break;
|
||||
|
||||
case TT_ONE:
|
||||
setToothedWheelConfiguration(triggerShape, 1, 0, engineConfiguration->operationMode);
|
||||
break;
|
||||
|
||||
case TT_MAZDA_SOHC_4:
|
||||
configureMazdaProtegeSOHC(triggerShape);
|
||||
break;
|
||||
|
@ -363,11 +367,11 @@ void initializeTriggerShape(Logging *logger, engine_configuration_s const *engin
|
|||
break;
|
||||
|
||||
case TT_TOOTHED_WHEEL_60_2:
|
||||
setToothedWheelConfiguration(triggerShape, 60, 2, engineConfiguration);
|
||||
setToothedWheelConfiguration(triggerShape, 60, 2, engineConfiguration->operationMode);
|
||||
break;
|
||||
|
||||
case TT_TOOTHED_WHEEL_36_1:
|
||||
setToothedWheelConfiguration(triggerShape, 36, 1, engineConfiguration);
|
||||
setToothedWheelConfiguration(triggerShape, 36, 1, engineConfiguration->operationMode);
|
||||
break;
|
||||
|
||||
case TT_HONDA_ACCORD_CD_TWO_WIRES:
|
||||
|
|
|
@ -296,13 +296,13 @@ void multi_wave_s::checkSwitchTimes(int size) {
|
|||
}
|
||||
|
||||
void setToothedWheelConfiguration(TriggerShape *s, int total, int skipped,
|
||||
engine_configuration_s const *engineConfiguration) {
|
||||
operation_mode_e operationMode) {
|
||||
#if EFI_ENGINE_CONTROL
|
||||
|
||||
s->useRiseEdge = true;
|
||||
|
||||
initializeSkippedToothTriggerShapeExt(s, total, skipped,
|
||||
engineConfiguration->operationMode);
|
||||
operationMode);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -142,6 +142,6 @@ private:
|
|||
|
||||
void setTriggerSynchronizationGap(TriggerShape *s, float synchGap);
|
||||
void setTriggerSynchronizationGap2(TriggerShape *s, float syncGapFrom, float syncRatioTo);
|
||||
void setToothedWheelConfiguration(TriggerShape *s, int total, int skipped, engine_configuration_s const *engineConfiguration);
|
||||
void setToothedWheelConfiguration(TriggerShape *s, int total, int skipped, operation_mode_e operationMode);
|
||||
|
||||
#endif /* TRIGGER_STRUCTURE_H_ */
|
||||
|
|
|
@ -202,7 +202,7 @@ struct trigger_config_s @brief Trigger wheel(s) configuration
|
|||
|
||||
custom bool32_t 4 bits, U32, @OFFSET@, [0:0], "false", "true"
|
||||
|
||||
custom trigger_type_e 4 bits, U32, @OFFSET@, [0:4], "custom toothed wheel", "ford aspire", "dodge neon", "Miata NA", "Miata NB", "GM_7X", "Cooper", "Mazda SOHC 4", "60/2", "36/1", "Accord CD", "MITSU", "ACCORD 2", "ACCORD DIP", "Neon 2003", "MAZDA D 1+4", "1+1", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID"
|
||||
custom trigger_type_e 4 bits, U32, @OFFSET@, [0:4], "custom toothed wheel", "ford aspire", "dodge neon", "Miata NA", "Miata NB", "GM_7X", "Cooper", "Mazda SOHC 4", "60/2", "36/1", "Accord CD", "MITSU", "ACCORD 2", "ACCORD DIP", "Neon 2003", "MAZDA D 1+4", "1+1", "1+60/2", "Single Tooth", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID"
|
||||
trigger_type_e type;
|
||||
|
||||
bit customIsSynchronizationNeeded;
|
||||
|
|
Loading…
Reference in New Issue