math is fun (#3545)

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
Matthew Kennedy 2021-11-14 12:32:35 -08:00 committed by GitHub
parent e8aebc313a
commit a7ba539e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -4,16 +4,16 @@
void setMercedesTwoSegment(TriggerWaveform* s) {
s->initialize(FOUR_STROKE_CRANK_SENSOR);
s->addEvent360(223 - 10, T_PRIMARY, TV_RISE);
s->addEvent360(223, T_PRIMARY, TV_FALL);
s->addEvent360(180 - 10, T_PRIMARY, TV_RISE);
s->addEvent360(180, T_PRIMARY, TV_FALL);
s->addEvent360(316 - 10, T_PRIMARY, TV_RISE);
s->addEvent360(316, T_PRIMARY, TV_FALL);
s->addEvent360(227 - 10, T_PRIMARY, TV_RISE);
s->addEvent360(227, T_PRIMARY, TV_FALL);
s->addEvent360(360 - 10, T_PRIMARY, TV_RISE);
s->addEvent360(360, T_PRIMARY, TV_FALL);
s->setTriggerSynchronizationGap(0.47);
s->setSecondTriggerSynchronizationGap(0.42);
s->setThirdTriggerSynchronizationGap(5.07);
s->setTriggerSynchronizationGap(1.35);
s->setSecondTriggerSynchronizationGap(2.84);
s->setThirdTriggerSynchronizationGap(0.26);
}