rusefi 2023-06-23 19:25:53 -04:00
parent acf6de3577
commit cf7642b737
1 changed files with 1 additions and 6 deletions

View File

@ -15,6 +15,7 @@ void configureHondaCbr600(TriggerWaveform *s) {
s->useOnlyPrimaryForSync = true;
s->setTriggerSynchronizationGap(6);
s->tdcPosition = 0; // todo: hard-code TDC position once we know it
int totalTeethCount = 24;
int skippedCount = 0;
@ -30,20 +31,14 @@ void configureHondaCbr600(TriggerWaveform *s) {
addSkippedToothTriggerEvents(TriggerWheel::T_SECONDARY, s, totalTeethCount, skippedCount, 0.5, 0, 720,
361, 649);
s->addEvent720(650.0f, TriggerValue::FALL, TriggerWheel::T_PRIMARY);
s->addEvent720(660.0f, TriggerValue::RISE, TriggerWheel::T_PRIMARY);
s->addEvent720(660 + 0.2, TriggerValue::FALL, TriggerWheel::T_SECONDARY);
addSkippedToothTriggerEvents(TriggerWheel::T_SECONDARY, s, totalTeethCount, skippedCount, 0.5, 0, 720,
661, 709);
// exit(-1);
s->addEvent720(710.0f, TriggerValue::FALL, TriggerWheel::T_PRIMARY);
s->addEvent720(720.0f - 1, TriggerValue::FALL, TriggerWheel::T_SECONDARY);