12 tooth crank issues #4943

refactoring
This commit is contained in:
rusefillc 2023-01-08 22:01:10 -05:00
parent ba31d11a99
commit c72528e5c2
1 changed files with 4 additions and 2 deletions

View File

@ -164,7 +164,9 @@ void configure12ToothCrank(TriggerWaveform* s) {
s->setTriggerSynchronizationGap3(i, 0.55f, 1.45f);
}
float width = 360 / 12;
// Just a single tooth with 50% duty cycle
s->addEventAngle(15, TriggerValue::FALL, TriggerWheel::T_PRIMARY);
s->addEventAngle(30, TriggerValue::RISE, TriggerWheel::T_PRIMARY);
s->addEventAngle(width / 2, TriggerValue::FALL, TriggerWheel::T_PRIMARY);
s->addEventAngle(width, TriggerValue::RISE, TriggerWheel::T_PRIMARY);
}