refactoring: no need to specify parameter manually

This commit is contained in:
rusefi 2020-01-12 10:43:02 -05:00
parent 406703b1b5
commit abe1b8c1f3
16 changed files with 46 additions and 44 deletions

View File

@ -16,7 +16,7 @@ static inline float addPair(TriggerWaveform *s, float a, float w) {
} }
void configureMiniCooperTriggerWaveform(TriggerWaveform *s) { void configureMiniCooperTriggerWaveform(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
// s->initialState[0] = 1; // s->initialState[0] = 1;

View File

@ -10,7 +10,7 @@
void initDodgeRam(TriggerWaveform *s) { void initDodgeRam(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->useRiseEdge = true; s->useRiseEdge = true;
s->isSynchronizationNeeded = false; s->isSynchronizationNeeded = false;
@ -26,7 +26,7 @@ void initDodgeRam(TriggerWaveform *s) {
} }
void configureNeon2003TriggerWaveformCrank(TriggerWaveform *s DECLARE_ENGINE_PARAMETER_SUFFIX) { void configureNeon2003TriggerWaveformCrank(TriggerWaveform *s DECLARE_ENGINE_PARAMETER_SUFFIX) {
s->initialize(FOUR_STROKE_CRANK_SENSOR, false); s->initialize(FOUR_STROKE_CRANK_SENSOR);
s->useRiseEdge = true; s->useRiseEdge = true;
s->setTriggerSynchronizationGap(3); s->setTriggerSynchronizationGap(3);
@ -103,7 +103,7 @@ void configureNeon2003TriggerWaveformCam(TriggerWaveform *s) {
// todo: move sync point so that two channel does not have false trigger issues // todo: move sync point so that two channel does not have false trigger issues
bool useOnlyPrimary = true; bool useOnlyPrimary = true;
s->initialize(FOUR_STROKE_CAM_SENSOR, !useOnlyPrimary); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->useRiseEdge = true; s->useRiseEdge = true;
s->tdcPosition = 496; s->tdcPosition = 496;
@ -323,7 +323,7 @@ gap=1.43/0.71
} }
void configureDodgeStratusTriggerWaveform(TriggerWaveform *s) { void configureDodgeStratusTriggerWaveform(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, false); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->isSynchronizationNeeded = true; s->isSynchronizationNeeded = true;
s->tdcPosition = 150; s->tdcPosition = 150;
@ -449,7 +449,7 @@ static void configureNeon1995TriggerWaveformCommon(bool withCam, TriggerWaveform
} }
void configureNeon1995TriggerWaveformOnlyCrank(TriggerWaveform *s) { void configureNeon1995TriggerWaveformOnlyCrank(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CRANK_SENSOR, false); s->initialize(FOUR_STROKE_CRANK_SENSOR);
s->setTriggerSynchronizationGap(3.79); s->setTriggerSynchronizationGap(3.79);
s->tdcPosition = 279; s->tdcPosition = 279;
@ -459,7 +459,7 @@ void configureNeon1995TriggerWaveformOnlyCrank(TriggerWaveform *s) {
void configureNeon1995TriggerWaveform(TriggerWaveform *s) { void configureNeon1995TriggerWaveform(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->setTriggerSynchronizationGap(0.8227); s->setTriggerSynchronizationGap(0.8227);
@ -474,7 +474,7 @@ void configureNeon1995TriggerWaveform(TriggerWaveform *s) {
} }
void initJeep18_2_2_2(TriggerWaveform *s) { void initJeep18_2_2_2(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->isSynchronizationNeeded = true; s->isSynchronizationNeeded = true;
s->setTriggerSynchronizationGap(1); s->setTriggerSynchronizationGap(1);
s->useOnlyPrimaryForSync = true; s->useOnlyPrimaryForSync = true;
@ -559,7 +559,7 @@ static void add4cylblock(int off, TriggerWaveform *s) {
// TT_JEEP_4_CYL // TT_JEEP_4_CYL
void initJeep_XJ_4cyl_2500(TriggerWaveform *s) { void initJeep_XJ_4cyl_2500(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->isSynchronizationNeeded = true; s->isSynchronizationNeeded = true;
s->setTriggerSynchronizationGap(1); s->setTriggerSynchronizationGap(1);
s->useOnlyPrimaryForSync = true; s->useOnlyPrimaryForSync = true;

View File

@ -8,7 +8,7 @@
#include "trigger_gm.h" #include "trigger_gm.h"
void configureGmTriggerWaveform(TriggerWaveform *s) { void configureGmTriggerWaveform(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CRANK_SENSOR, false); s->initialize(FOUR_STROKE_CRANK_SENSOR);
// all angles are x2 here - so, 5 degree width is 10 // all angles are x2 here - so, 5 degree width is 10
float w = 10; float w = 10;
@ -60,7 +60,7 @@ static int gm_tooth_pair(float startAngle, bool isShortLong, TriggerWaveform* s,
* based on data in https://rusefi.com/forum/viewtopic.php?f=3&t=936&p=30303#p30285 * based on data in https://rusefi.com/forum/viewtopic.php?f=3&t=936&p=30303#p30285
*/ */
void initGmLS24(TriggerWaveform *s) { void initGmLS24(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CRANK_SENSOR, false); s->initialize(FOUR_STROKE_CRANK_SENSOR);
/* /*
* Okay, here's how this magic works: * Okay, here's how this magic works:

View File

@ -34,7 +34,7 @@ static float addAccordPair3(TriggerWaveform *s, float sb) {
* http://forum.pgmfi.org/viewtopic.php?f=2&t=15570start=210#p139007 * http://forum.pgmfi.org/viewtopic.php?f=2&t=15570start=210#p139007
*/ */
void configureHondaAccordCDDip(TriggerWaveform *s) { void configureHondaAccordCDDip(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->initialState[T_SECONDARY] = TV_RISE; s->initialState[T_SECONDARY] = TV_RISE;
float sb = 0; float sb = 0;
@ -106,7 +106,7 @@ void configureHonda_1_4_24(TriggerWaveform *s, bool withOneEventSignal, bool wit
trigger_wheel_e const oneEventWave, trigger_wheel_e const oneEventWave,
trigger_wheel_e const fourEventWave, trigger_wheel_e const fourEventWave,
float prefix) { float prefix) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
float sb = 5.0f + prefix; float sb = 5.0f + prefix;
@ -167,7 +167,7 @@ void configureHonda_1_4_24(TriggerWaveform *s, bool withOneEventSignal, bool wit
} }
void configureHondaCbr600(TriggerWaveform *s) { void configureHondaCbr600(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->useOnlyPrimaryForSync = true; s->useOnlyPrimaryForSync = true;
s->isSynchronizationNeeded = true; s->isSynchronizationNeeded = true;
@ -213,8 +213,8 @@ void configureHondaCbr600custom(TriggerWaveform *s) {
// w = 15 // w = 15
float w = 720 / 2 / 24; float w = 720 / 2 / 24;
// s->initialize(FOUR_STROKE_CAM_SENSOR, false); // s->initialize(FOUR_STROKE_CAM_SENSOR);
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->useOnlyPrimaryForSync = true; s->useOnlyPrimaryForSync = true;
s->isSynchronizationNeeded = true; s->isSynchronizationNeeded = true;
@ -284,7 +284,7 @@ void configureHondaCbr600custom(TriggerWaveform *s) {
} }
void configureHondaAccordShifted(TriggerWaveform *s) { void configureHondaAccordShifted(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
float sb = S24; float sb = S24;
@ -316,7 +316,7 @@ void configureHondaAccordShifted(TriggerWaveform *s) {
void configureOnePlus16(TriggerWaveform *s, operation_mode_e operationMode) { void configureOnePlus16(TriggerWaveform *s, operation_mode_e operationMode) {
UNUSED(operationMode); UNUSED(operationMode);
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
int totalTeethCount = 16; int totalTeethCount = 16;
int skippedCount = 0; int skippedCount = 0;

View File

@ -21,7 +21,7 @@
#include "trigger_mazda.h" #include "trigger_mazda.h"
void initializeMazdaMiataNaShape(TriggerWaveform *s) { void initializeMazdaMiataNaShape(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->setTriggerSynchronizationGap2(1.4930 * 0.6f, 1.4930 * 1.3f); s->setTriggerSynchronizationGap2(1.4930 * 0.6f, 1.4930 * 1.3f);
s->useRiseEdge = false; s->useRiseEdge = false;
@ -57,7 +57,7 @@ void initializeMazdaMiataNaShape(TriggerWaveform *s) {
* See https://rusefi.com/forum/viewtopic.php?f=5&t=1447 * See https://rusefi.com/forum/viewtopic.php?f=5&t=1447
*/ */
void initialize_Mazda_Engine_z5_Shape(TriggerWaveform *s) { void initialize_Mazda_Engine_z5_Shape(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, false); s->initialize(FOUR_STROKE_CAM_SENSOR);
/** /**
* My Signal is: 60, 60, 102, 60 * My Signal is: 60, 60, 102, 60
* 120, 120, 120, 78, * 120, 120, 120, 78,
@ -88,7 +88,7 @@ void initialize_Mazda_Engine_z5_Shape(TriggerWaveform *s) {
// TT_MIATA_VVT // TT_MIATA_VVT
void initializeMazdaMiataNb2Crank(TriggerWaveform *s) { void initializeMazdaMiataNb2Crank(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR, false); s->initialize(FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR);
float o = 160; float o = 160;
@ -102,7 +102,7 @@ void initializeMazdaMiataNb2Crank(TriggerWaveform *s) {
} }
static void initializeMazdaMiataNb1ShapeWithOffset(TriggerWaveform *s, float offset) { static void initializeMazdaMiataNb1ShapeWithOffset(TriggerWaveform *s, float offset) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->setTriggerSynchronizationGap3(0, 0.065, 0.17f); s->setTriggerSynchronizationGap3(0, 0.065, 0.17f);
s->useRiseEdge = false; s->useRiseEdge = false;
s->bothFrontsRequired = true; s->bothFrontsRequired = true;
@ -152,7 +152,7 @@ void initializeMazdaMiataVVtTestShape(TriggerWaveform *s) {
} }
void configureMazdaProtegeSOHC(TriggerWaveform *s) { void configureMazdaProtegeSOHC(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, false); s->initialize(FOUR_STROKE_CAM_SENSOR);
// s->initialState[0] = 1; // s->initialState[0] = 1;
// float w = 720 / 4 * 0.215; // float w = 720 / 4 * 0.215;
@ -179,7 +179,7 @@ void configureMazdaProtegeSOHC(TriggerWaveform *s) {
} }
void configureMazdaProtegeLx(TriggerWaveform *s) { void configureMazdaProtegeLx(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->useOnlyPrimaryForSync = true; s->useOnlyPrimaryForSync = true;
/** /**

View File

@ -9,7 +9,7 @@
// TT_FIAT_IAW_P8 // TT_FIAT_IAW_P8
void configureFiatIAQ_P8(TriggerWaveform * s) { void configureFiatIAQ_P8(TriggerWaveform * s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, false); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->isSynchronizationNeeded = true; s->isSynchronizationNeeded = true;

View File

@ -8,7 +8,7 @@
#include "trigger_mitsubishi.h" #include "trigger_mitsubishi.h"
void configureFordAspireTriggerWaveform(TriggerWaveform * s) { void configureFordAspireTriggerWaveform(TriggerWaveform * s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->isSynchronizationNeeded = false; s->isSynchronizationNeeded = false;
float x = 121.90; float x = 121.90;
@ -32,7 +32,7 @@ void configureFordAspireTriggerWaveform(TriggerWaveform * s) {
* TT_MITSUBISHI = 11 * TT_MITSUBISHI = 11
*/ */
void initializeMitsubishi4g18(TriggerWaveform *s) { void initializeMitsubishi4g18(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->useRiseEdge = false; s->useRiseEdge = false;
s->setTriggerSynchronizationGap(1.6666); s->setTriggerSynchronizationGap(1.6666);

View File

@ -14,7 +14,7 @@
* 8,2,2,2 Nissan pattern * 8,2,2,2 Nissan pattern
*/ */
static void initializeNissanSR20VE_4_optional_360(TriggerWaveform *s, bool with2nd) { static void initializeNissanSR20VE_4_optional_360(TriggerWaveform *s, bool with2nd) {
s->initialize(FOUR_STROKE_CAM_SENSOR, with2nd); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->isSynchronizationNeeded = true; s->isSynchronizationNeeded = true;
s->gapBothDirections = true; s->gapBothDirections = true;
s->useOnlyPrimaryForSync = true; s->useOnlyPrimaryForSync = true;

View File

@ -12,7 +12,7 @@
* https://en.wikipedia.org/wiki/Rover_K-series_engine * https://en.wikipedia.org/wiki/Rover_K-series_engine
*/ */
void initializeRoverK(TriggerWaveform *s) { void initializeRoverK(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CRANK_SENSOR, false); s->initialize(FOUR_STROKE_CRANK_SENSOR);
float tooth = 20; float tooth = 20;

View File

@ -59,16 +59,16 @@ trigger_shape_helper::trigger_shape_helper() {
TriggerWaveform::TriggerWaveform() : TriggerWaveform::TriggerWaveform() :
wave(switchTimesBuffer, NULL) { wave(switchTimesBuffer, NULL) {
initialize(OM_NONE, false); initialize(OM_NONE);
wave.channels = h.channels; wave.channels = h.channels;
memset(triggerIndexByAngle, 0, sizeof(triggerIndexByAngle)); memset(triggerIndexByAngle, 0, sizeof(triggerIndexByAngle));
} }
void TriggerWaveform::initialize(operation_mode_e operationMode, bool needSecondTriggerInput) { void TriggerWaveform::initialize(operation_mode_e operationMode) {
isSynchronizationNeeded = true; // that's default value isSynchronizationNeeded = true; // that's default value
bothFrontsRequired = false; bothFrontsRequired = false;
this->needSecondTriggerInput = needSecondTriggerInput; needSecondTriggerInput = false;
memset(expectedDutyCycle, 0, sizeof(expectedDutyCycle)); memset(expectedDutyCycle, 0, sizeof(expectedDutyCycle));
memset(eventAngles, 0, sizeof(eventAngles)); memset(eventAngles, 0, sizeof(eventAngles));
// memset(triggerIndexByAngle, 0, sizeof(triggerIndexByAngle)); // memset(triggerIndexByAngle, 0, sizeof(triggerIndexByAngle));
@ -189,7 +189,9 @@ void TriggerWaveform::addEvent720(angle_t angle, trigger_wheel_e const channelIn
void TriggerWaveform::addEvent(angle_t angle, trigger_wheel_e const channelIndex, trigger_value_e const stateParam) { void TriggerWaveform::addEvent(angle_t angle, trigger_wheel_e const channelIndex, trigger_value_e const stateParam) {
efiAssertVoid(CUSTOM_OMODE_UNDEF, operationMode != OM_NONE, "operationMode not set"); efiAssertVoid(CUSTOM_OMODE_UNDEF, operationMode != OM_NONE, "operationMode not set");
efiAssertVoid(CUSTOM_ERR_6598, channelIndex!= T_SECONDARY || needSecondTriggerInput, "secondary needed or not?"); if (channelIndex == T_SECONDARY) {
needSecondTriggerInput = true;
}
#if EFI_UNIT_TEST #if EFI_UNIT_TEST
if (printTriggerDebug) { if (printTriggerDebug) {

View File

@ -227,7 +227,7 @@ public:
void addEventClamped(angle_t angle, trigger_wheel_e const channelIndex, trigger_value_e const stateParam, float filterLeft, float filterRight); void addEventClamped(angle_t angle, trigger_wheel_e const channelIndex, trigger_value_e const stateParam, float filterLeft, float filterRight);
operation_mode_e getOperationMode() const; operation_mode_e getOperationMode() const;
void initialize(operation_mode_e operationMode, bool needSecondTriggerInput); void initialize(operation_mode_e operationMode);
void setTriggerSynchronizationGap(float syncRatio); void setTriggerSynchronizationGap(float syncRatio);
void setTriggerSynchronizationGap3(int index, float syncRatioFrom, float syncRatioTo); void setTriggerSynchronizationGap3(int index, float syncRatioFrom, float syncRatioTo);
void setTriggerSynchronizationGap2(float syncRatioFrom, float syncRatioTo); void setTriggerSynchronizationGap2(float syncRatioFrom, float syncRatioTo);

View File

@ -11,7 +11,7 @@
* This trigger is also used by Nissan and Mazda * This trigger is also used by Nissan and Mazda
*/ */
void initialize36_2_2_2(TriggerWaveform *s) { void initialize36_2_2_2(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
float wide = 30 * 2; float wide = 30 * 2;
float narrow = 10 * 2; float narrow = 10 * 2;
@ -47,7 +47,7 @@ void initialize36_2_2_2(TriggerWaveform *s) {
} }
void initializeSubaru7_6(TriggerWaveform *s) { void initializeSubaru7_6(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
float magic = 333; float magic = 333;

View File

@ -10,7 +10,7 @@
#include "trigger_toyota.h" #include "trigger_toyota.h"
void initialize2jzGE1_12(TriggerWaveform *s) { void initialize2jzGE1_12(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
float crankD = 360 / 12 / 2; // 15 float crankD = 360 / 12 / 2; // 15
@ -46,7 +46,7 @@ void initialize2jzGE1_12(TriggerWaveform *s) {
void initialize2jzGE3_34(TriggerWaveform *s) { void initialize2jzGE3_34(TriggerWaveform *s) {
setToothedWheelConfiguration(s, 36, 2, FOUR_STROKE_CRANK_SENSOR); setToothedWheelConfiguration(s, 36, 2, FOUR_STROKE_CRANK_SENSOR);
// s->initialize(FOUR_STROKE_CAM_SENSOR, true); // s->initialize(FOUR_STROKE_CAM_SENSOR);
// //
// float camD = 720 / 6; // 120 // float camD = 720 / 6; // 120
// //

View File

@ -36,7 +36,7 @@ void initializeSkippedToothTriggerWaveformExt(TriggerWaveform *s, int totalTeeth
return; return;
} }
efiAssertVoid(CUSTOM_NULL_SHAPE, s != NULL, "TriggerWaveform is NULL"); efiAssertVoid(CUSTOM_NULL_SHAPE, s != NULL, "TriggerWaveform is NULL");
s->initialize(operationMode, false); s->initialize(operationMode);
s->setTriggerSynchronizationGap(skippedCount + 1); s->setTriggerSynchronizationGap(skippedCount + 1);
s->isSynchronizationNeeded = (totalTeethCount > 2) && (skippedCount != 0); s->isSynchronizationNeeded = (totalTeethCount > 2) && (skippedCount != 0);
@ -48,7 +48,7 @@ void initializeSkippedToothTriggerWaveformExt(TriggerWaveform *s, int totalTeeth
void configureOnePlusOne(TriggerWaveform *s, operation_mode_e operationMode) { void configureOnePlusOne(TriggerWaveform *s, operation_mode_e operationMode) {
UNUSED(operationMode); UNUSED(operationMode);
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->addEvent720(180, T_PRIMARY, TV_RISE); s->addEvent720(180, T_PRIMARY, TV_RISE);
s->addEvent720(360, T_PRIMARY, TV_FALL); s->addEvent720(360, T_PRIMARY, TV_FALL);
@ -62,7 +62,7 @@ void configureOnePlusOne(TriggerWaveform *s, operation_mode_e operationMode) {
void configureOnePlus60_2(TriggerWaveform *s, operation_mode_e operationMode) { void configureOnePlus60_2(TriggerWaveform *s, operation_mode_e operationMode) {
UNUSED(operationMode); UNUSED(operationMode);
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
int totalTeethCount = 60; int totalTeethCount = 60;
int skippedCount = 2; int skippedCount = 2;
@ -81,7 +81,7 @@ void configureOnePlus60_2(TriggerWaveform *s, operation_mode_e operationMode) {
void configure3_1_cam(TriggerWaveform *s, operation_mode_e operationMode) { void configure3_1_cam(TriggerWaveform *s, operation_mode_e operationMode) {
UNUSED(operationMode); UNUSED(operationMode);
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
const float crankW = 360 / 3 / 2; const float crankW = 360 / 3 / 2;

View File

@ -11,7 +11,7 @@
void setVwConfiguration(TriggerWaveform *s) { void setVwConfiguration(TriggerWaveform *s) {
efiAssertVoid(CUSTOM_ERR_6660, s != NULL, "TriggerWaveform is NULL"); efiAssertVoid(CUSTOM_ERR_6660, s != NULL, "TriggerWaveform is NULL");
s->initialize(FOUR_STROKE_CRANK_SENSOR, false); s->initialize(FOUR_STROKE_CRANK_SENSOR);
s->isSynchronizationNeeded = true; s->isSynchronizationNeeded = true;

View File

@ -115,7 +115,7 @@ TEST(misc, testFuelMap) {
static void confgiureFordAspireTriggerWaveform(TriggerWaveform * s) { static void confgiureFordAspireTriggerWaveform(TriggerWaveform * s) {
s->initialize(FOUR_STROKE_CAM_SENSOR, true); s->initialize(FOUR_STROKE_CAM_SENSOR);
s->addEvent720(53.747, T_SECONDARY, TV_RISE); s->addEvent720(53.747, T_SECONDARY, TV_RISE);
s->addEvent720(121.90, T_SECONDARY, TV_FALL); s->addEvent720(121.90, T_SECONDARY, TV_FALL);