Mitsubishi 4B11 support #4013
This commit is contained in:
parent
715b8438d9
commit
ce45951f7a
|
@ -82,6 +82,31 @@ void initialize36_2_1_1(TriggerWaveform *s) {
|
||||||
s->setSecondTriggerSynchronizationGap(1); // redundancy
|
s->setSecondTriggerSynchronizationGap(1); // redundancy
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void initialize36_2_1(TriggerWaveform *s) {
|
||||||
|
s->initialize(FOUR_STROKE_CRANK_SENSOR);
|
||||||
|
s->tdcPosition = 90;
|
||||||
|
int totalTeethCount = 36;
|
||||||
|
|
||||||
|
float engineCycle = FOUR_STROKE_ENGINE_CYCLE;
|
||||||
|
float toothWidth = 0.5;
|
||||||
|
|
||||||
|
float oneTooth = 720 / totalTeethCount;
|
||||||
|
|
||||||
|
float offset = (36 - 17 - 2 - 16) * oneTooth;
|
||||||
|
|
||||||
|
addSkippedToothTriggerEvents(T_PRIMARY, s, totalTeethCount, 0, toothWidth, /*offset*/offset, engineCycle,
|
||||||
|
NO_LEFT_FILTER, offset + 17 * oneTooth + 1);
|
||||||
|
|
||||||
|
offset += (17 + 2) * oneTooth;
|
||||||
|
|
||||||
|
addSkippedToothTriggerEvents(T_PRIMARY, s, totalTeethCount, 0, toothWidth, /*offset*/offset, engineCycle,
|
||||||
|
NO_LEFT_FILTER, offset + 16 * oneTooth + 1);
|
||||||
|
|
||||||
|
|
||||||
|
s->setTriggerSynchronizationGap(3);
|
||||||
|
s->setSecondTriggerSynchronizationGap(1); // redundancy
|
||||||
|
}
|
||||||
|
|
||||||
void initializeVvt3A92(TriggerWaveform *s) {
|
void initializeVvt3A92(TriggerWaveform *s) {
|
||||||
s->initialize(FOUR_STROKE_CRANK_SENSOR);
|
s->initialize(FOUR_STROKE_CRANK_SENSOR);
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ void initializeMitsubishi4g18(TriggerWaveform *s);
|
||||||
void configureFordAspireTriggerWaveform(TriggerWaveform * s);
|
void configureFordAspireTriggerWaveform(TriggerWaveform * s);
|
||||||
|
|
||||||
void initialize36_2_1_1(TriggerWaveform *s);
|
void initialize36_2_1_1(TriggerWaveform *s);
|
||||||
|
void initialize36_2_1(TriggerWaveform *s);
|
||||||
|
|
||||||
void initializeVvt3A92(TriggerWaveform *s);
|
void initializeVvt3A92(TriggerWaveform *s);
|
||||||
void initializeVvt6G75(TriggerWaveform *s);
|
void initializeVvt6G75(TriggerWaveform *s);
|
||||||
|
|
|
@ -610,6 +610,9 @@ void TriggerWaveform::initializeTriggerWaveform(operation_mode_e ambiguousOperat
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TT_36_2_1:
|
case TT_36_2_1:
|
||||||
|
initialize36_2_1(this);
|
||||||
|
break;
|
||||||
|
|
||||||
case TT_TOOTHED_WHEEL_32_2:
|
case TT_TOOTHED_WHEEL_32_2:
|
||||||
setToothedWheelConfiguration(this, 32, 2, ambiguousOperationMode);
|
setToothedWheelConfiguration(this, 32, 2, ambiguousOperationMode);
|
||||||
// todo: add this second/third into 'setToothedWheelConfiguration' as long as we have enough tooth?
|
// todo: add this second/third into 'setToothedWheelConfiguration' as long as we have enough tooth?
|
||||||
|
|
Loading…
Reference in New Issue