#625 progress
This commit is contained in:
parent
71ca679ec5
commit
991c365461
|
@ -10,9 +10,8 @@
|
|||
|
||||
void setVwConfiguration(TriggerShape *s DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||
efiAssertVoid(CUSTOM_ERR_6660, s != NULL, "TriggerShape is NULL");
|
||||
operation_mode_e operationMode = FOUR_STROKE_CRANK_SENSOR;
|
||||
|
||||
s->initialize(operationMode, false);
|
||||
s->initialize(FOUR_STROKE_CRANK_SENSOR, false);
|
||||
|
||||
s->isSynchronizationNeeded = true;
|
||||
|
||||
|
@ -20,7 +19,7 @@ void setVwConfiguration(TriggerShape *s DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
|||
int totalTeethCount = 60;
|
||||
int skippedCount = 2;
|
||||
|
||||
float engineCycle = getEngineCycle(operationMode);
|
||||
float engineCycle = getEngineCycle(s->getOperationMode());
|
||||
float toothWidth = 0.5;
|
||||
|
||||
addSkippedToothTriggerEvents(T_PRIMARY, s, 60, 2, toothWidth, 0, engineCycle,
|
||||
|
|
|
@ -282,7 +282,7 @@ angle_t TriggerShape::getAngle(int index) const {
|
|||
|
||||
void TriggerShape::addEvent3(angle_t angle, trigger_wheel_e const channelIndex, trigger_value_e const stateParam, float filterLeft, float filterRight DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||
if (angle > filterLeft && angle < filterRight)
|
||||
addEvent(engineConfiguration->useOnlyRisingEdgeForTrigger, angle / getEngineCycle(operationMode), channelIndex, stateParam);
|
||||
addEvent(useOnlyRisingEdgeForTriggerTemp, angle / getEngineCycle(operationMode), channelIndex, stateParam);
|
||||
}
|
||||
|
||||
operation_mode_e TriggerShape::getOperationMode() {
|
||||
|
|
|
@ -223,7 +223,7 @@ void testFordAspire(void) {
|
|||
}
|
||||
|
||||
void testTriggerDecoder2(const char *msg, engine_type_e type, int synchPointIndex, float channel1duty, float channel2duty) {
|
||||
printf("*************************************************** %s\r\n", msg);
|
||||
printf("====================================================================================== testTriggerDecoder2 msg=%s\r\n", msg);
|
||||
|
||||
EngineTestHelper eth(type);
|
||||
EXPAND_EngineTestHelper;
|
||||
|
|
Loading…
Reference in New Issue