docs & names

This commit is contained in:
rusefi 2018-02-06 01:24:45 +03:00
parent 3d5e93534d
commit 4c95a14085
2 changed files with 3 additions and 3 deletions

View File

@ -386,7 +386,7 @@ void printAllTriggers() {
fprintf(fp, "TRIGGERTYPE %d %d %s %.2f\r\n", triggerId, s->getLength(), getTrigger_type_e(tt), s->tdcPosition);
fprintf(fp, "# duty %.2f %.2f\r\n", s->dutyCycle[0], s->dutyCycle[1]);
fprintf(fp, "# duty %.2f %.2f\r\n", s->expectedDutyCycle[0], s->expectedDutyCycle[1]);
for (int i = 0; i < s->getLength(); i++) {

View File

@ -227,8 +227,8 @@ void testTriggerDecoder2(const char *msg, engine_type_e type, int synchPointInde
assertEqualsM("synchPointIndex", synchPointIndex, t->getTriggerShapeSynchPointIndex());
assertEqualsM5(msg, " channel1duty", channel1duty, t->dutyCycle[0], 0.0001);
assertEqualsM5(msg, " channel2duty", channel2duty, t->dutyCycle[1], 0.0001);
assertEqualsM5(msg, " channel1duty", channel1duty, t->expectedDutyCycle[0], 0.0001);
assertEqualsM5(msg, " channel2duty", channel2duty, t->expectedDutyCycle[1], 0.0001);
}
static void testTriggerDecoder3(const char *msg, engine_type_e type, int synchPointIndex, float channel1duty, float channel2duty, float expectedGap) {