minor bugfix
This commit is contained in:
parent
90135bfda1
commit
6fd0be21bd
|
@ -239,13 +239,15 @@ static void reportWave(Logging *logging, int index) {
|
|||
|
||||
uint32_t offsetUs = getWaveOffset(index);
|
||||
int rpm = getRpmE(engine);
|
||||
float oneDegreeUs = rpm == 0 ? NAN : getOneDegreeTimeUs(rpm);
|
||||
if (rpm != 0) {
|
||||
float oneDegreeUs = getOneDegreeTimeUs(rpm);
|
||||
|
||||
appendPrintf(logging, "advance%d%s", index, DELIMETER);
|
||||
float angle = (offsetUs / oneDegreeUs) - tdcPosition();
|
||||
fixAngle(angle, "angle");
|
||||
appendFloat(logging, angle, 3);
|
||||
appendPrintf(logging, "%s", DELIMETER);
|
||||
appendPrintf(logging, "advance%d%s", index, DELIMETER);
|
||||
float angle = (offsetUs / oneDegreeUs) - tdcPosition();
|
||||
fixAngle(angle, "waveAn");
|
||||
appendFloat(logging, angle, 3);
|
||||
appendPrintf(logging, "%s", DELIMETER);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue