auto-sync
This commit is contained in:
parent
915e0a02b3
commit
ba81738b76
|
@ -18,9 +18,18 @@ void setMazdaMiata2003EngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
|||
|
||||
engineConfiguration->hasMapSensor = true;
|
||||
|
||||
engineConfiguration->trigger.type = TT_MIATA_VVT;
|
||||
engineConfiguration->trigger.type = TT_ONE;
|
||||
engineConfiguration->specs.displacement = 1.8;
|
||||
|
||||
boardConfiguration->triggerInputPins[0] = GPIOA_5;
|
||||
boardConfiguration->triggerInputPins[1] = GPIO_UNASSIGNED;
|
||||
engineConfiguration->camInput = GPIOC_6;
|
||||
|
||||
boardConfiguration->miataNb2 = true;
|
||||
boardConfiguration->vvtCamSensorUseRise = true;
|
||||
|
||||
|
||||
|
||||
engineConfiguration->specs.cylindersCount = 4;
|
||||
engineConfiguration->specs.firingOrder = FO_1_3_4_2;
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ void hwHandleVvtCamSignal(trigger_value_e front) {
|
|||
addEngineSniffferEvent(VVT_NAME, front == TV_RISE ? WC_UP : WC_DOWN);
|
||||
}
|
||||
|
||||
if (boardConfiguration->vvtCamSensorUseRise && front == TV_FALL) {
|
||||
if (boardConfiguration->vvtCamSensorUseRise ^ (front != TV_FALL)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue