auto-sync
This commit is contained in:
parent
05d40b3078
commit
e9f28134ab
|
@ -167,7 +167,7 @@ static void commonMiataNa(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
|
|
||||||
void common079721_2351(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration) {
|
void common079721_2351(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration) {
|
||||||
|
|
||||||
engineConfiguration->engineChartSize = 150;
|
engineConfiguration->engineChartSize = 300;
|
||||||
|
|
||||||
engineConfiguration->specs.cylindersCount = 4;
|
engineConfiguration->specs.cylindersCount = 4;
|
||||||
engineConfiguration->specs.firingOrder = FO_1_3_4_2;
|
engineConfiguration->specs.firingOrder = FO_1_3_4_2;
|
||||||
|
|
|
@ -37,8 +37,7 @@ TriggerShape::TriggerShape() :
|
||||||
wave(switchTimesBuffer, NULL) {
|
wave(switchTimesBuffer, NULL) {
|
||||||
initialize(OM_NONE, false);
|
initialize(OM_NONE, false);
|
||||||
wave.waves = h.waves;
|
wave.waves = h.waves;
|
||||||
// todo: false here, true in clear() what a mess!
|
|
||||||
useRiseEdge = false;
|
|
||||||
useOnlyPrimaryForSync = false;
|
useOnlyPrimaryForSync = false;
|
||||||
isSynchronizationNeeded = false;
|
isSynchronizationNeeded = false;
|
||||||
// todo: reuse 'clear' method?
|
// todo: reuse 'clear' method?
|
||||||
|
@ -117,7 +116,6 @@ void TriggerShape::initialize(operation_mode_e operationMode, bool needSecondTri
|
||||||
|
|
||||||
|
|
||||||
tdcPosition = 0;
|
tdcPosition = 0;
|
||||||
// todo: true here, false in constructor() what a mess!
|
|
||||||
useRiseEdge = true;
|
useRiseEdge = true;
|
||||||
|
|
||||||
invertOnAdd = false;
|
invertOnAdd = false;
|
||||||
|
@ -373,8 +371,6 @@ void setVwConfiguration(TriggerShape *s) {
|
||||||
efiAssertVoid(s != NULL, "TriggerShape is NULL");
|
efiAssertVoid(s != NULL, "TriggerShape is NULL");
|
||||||
operation_mode_e operationMode = FOUR_STROKE_CRANK_SENSOR;
|
operation_mode_e operationMode = FOUR_STROKE_CRANK_SENSOR;
|
||||||
|
|
||||||
s->useRiseEdge = true;
|
|
||||||
|
|
||||||
s->initialize(operationMode, false);
|
s->initialize(operationMode, false);
|
||||||
|
|
||||||
s->isSynchronizationNeeded = true;
|
s->isSynchronizationNeeded = true;
|
||||||
|
|
Loading…
Reference in New Issue