auto-sync

This commit is contained in:
rusEfi 2016-08-19 00:02:50 -04:00
parent 46479c23c5
commit a443bd7ed2
2 changed files with 2 additions and 6 deletions

View File

@ -167,7 +167,7 @@ static void commonMiataNa(DECLARE_ENGINE_PARAMETER_F) {
void common079721_2351(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration) {
engineConfiguration->engineChartSize = 150;
engineConfiguration->engineChartSize = 300;
engineConfiguration->specs.cylindersCount = 4;
engineConfiguration->specs.firingOrder = FO_1_3_4_2;

View File

@ -37,8 +37,7 @@ TriggerShape::TriggerShape() :
wave(switchTimesBuffer, NULL) {
initialize(OM_NONE, false);
wave.waves = h.waves;
// todo: false here, true in clear() what a mess!
useRiseEdge = false;
useOnlyPrimaryForSync = false;
isSynchronizationNeeded = false;
// todo: reuse 'clear' method?
@ -117,7 +116,6 @@ void TriggerShape::initialize(operation_mode_e operationMode, bool needSecondTri
tdcPosition = 0;
// todo: true here, false in constructor() what a mess!
useRiseEdge = true;
invertOnAdd = false;
@ -373,8 +371,6 @@ void setVwConfiguration(TriggerShape *s) {
efiAssertVoid(s != NULL, "TriggerShape is NULL");
operation_mode_e operationMode = FOUR_STROKE_CRANK_SENSOR;
s->useRiseEdge = true;
s->initialize(operationMode, false);
s->isSynchronizationNeeded = true;