explicit known wheel info

This commit is contained in:
rusefillc 2024-02-08 11:55:42 -05:00
parent 18c983aa5d
commit c90dca0600
1 changed files with 10 additions and 1 deletions

View File

@ -167,6 +167,8 @@ public class TriggerImage {
triggerPanel.tdcPosition = triggerWheelInfo.getTdcPosition();
triggerPanel.gaps = triggerWheelInfo.getGaps();
triggerPanel.syncEdge = triggerWheelInfo.getSyncEdge();
triggerPanel.isKnown = triggerWheelInfo.isKnownOperationMode();
triggerPanel.isCrankBased = triggerWheelInfo.isCrankBased();
EngineReport re0 = new EngineReport(waves.get(0).list, MIN_TIME, 720 * (1 + EXTRA_COUNT));
System.out.println(re0);
@ -333,6 +335,8 @@ public class TriggerImage {
// angle
public double tdcPosition;
public String syncEdge;
public boolean isKnown;
public boolean isCrankBased;
public UpDownImage image;
public TriggerWheelInfo.TriggerGaps gaps;
@ -382,6 +386,11 @@ public class TriggerImage {
y += tdcFontSize;
}
if (isKnown) {
g.drawString(prefix + (isCrankBased ? "On crankshaft" : "On camshaft"), 0, y);
y += tdcFontSize;
}
if (syncEdge != null) {
g.drawString(prefix + syncEdge, 0, y);
y += tdcFontSize;
@ -401,4 +410,4 @@ public class TriggerImage {
return Double.toString(tdcPosition);
}
}
}
}