better support for pretty noisy trigger (?)
This commit is contained in:
parent
c008db2aea
commit
23fe25268a
|
@ -810,6 +810,6 @@ int getRusEfiVersion(void) {
|
||||||
if (initBootloader() != 0)
|
if (initBootloader() != 0)
|
||||||
return 123;
|
return 123;
|
||||||
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */
|
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */
|
||||||
return 20190623;
|
return 20190625;
|
||||||
}
|
}
|
||||||
#endif /* EFI_UNIT_TEST */
|
#endif /* EFI_UNIT_TEST */
|
||||||
|
|
|
@ -509,13 +509,18 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
|
||||||
|
|
||||||
for (int i = 0;i<GAP_TRACKING_LENGTH;i++) {
|
for (int i = 0;i<GAP_TRACKING_LENGTH;i++) {
|
||||||
float gap = 1.0 * toothDurations[i] / toothDurations[i + 1];
|
float gap = 1.0 * toothDurations[i] / toothDurations[i + 1];
|
||||||
scheduleMsg(logger, "%d %d: cur %.2f expected from %.2f to %.2f error=%d",
|
if (cisnan(gap)) {
|
||||||
|
scheduleMsg(logger, "%d NaN cur gap, you have noise issues?",
|
||||||
|
i);
|
||||||
|
} else {
|
||||||
|
scheduleMsg(logger, "%d %d: cur %.2f expected from %.2f to %.2f error=%d",
|
||||||
getTimeNowSeconds(),
|
getTimeNowSeconds(),
|
||||||
i,
|
i,
|
||||||
gap,
|
gap,
|
||||||
TRIGGER_SHAPE(syncronizationRatioFrom[i]),
|
TRIGGER_SHAPE(syncronizationRatioFrom[i]),
|
||||||
TRIGGER_SHAPE(syncronizationRatioTo[i]),
|
TRIGGER_SHAPE(syncronizationRatioTo[i]),
|
||||||
someSortOfTriggerError);
|
someSortOfTriggerError);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -10,7 +10,7 @@ import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
public class MessagesView {
|
public class MessagesView {
|
||||||
private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH_mm");
|
private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH_mm:ss.SSS");
|
||||||
private static final int MAX_SIZE = 50000;
|
private static final int MAX_SIZE = 50000;
|
||||||
private final Style bold;
|
private final Style bold;
|
||||||
private final Style italic;
|
private final Style italic;
|
||||||
|
|
Loading…
Reference in New Issue