auto-sync

This commit is contained in:
rusEfi 2015-09-21 22:02:29 -04:00
parent f8fba1fc77
commit 68db944276
3 changed files with 18 additions and 2 deletions

View File

@ -36,6 +36,7 @@ trigger_shape_helper::trigger_shape_helper() {
TriggerShape::TriggerShape() :
wave(switchTimesBuffer, NULL) {
reset(OM_NONE, false);
clear();
wave.waves = h.waves;
// todo: false here, true in clear() what a mess!
useRiseEdge = false;

View File

@ -81,10 +81,13 @@ public:
/**
* In case of a multi-channel trigger, do we want to sync based on primary channel only?
* See also gapBothDirections
*/
bool_t useOnlyPrimaryForSync;
/**
* Should we measure gaps with events of both kinds?
* This is about selecting signal edges within partictular trigger channels.
* Should we measure gaps with both fall and rise signal edges?
* See also useOnlyPrimaryForSync
*/
bool_t gapBothDirections;

View File

@ -42,7 +42,7 @@ public class UpDownImage extends JPanel {
private RevolutionLog time2rpm = RevolutionLog.parseRevolutions(null);
private String pin = "";
private long mouseEnterTime;
private Timer repaintTimer = new Timer(1000, new ActionListener() {
private final Timer repaintTimer = new Timer(1000, new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
UiUtils.trueRepaint(UpDownImage.this);
@ -112,6 +112,11 @@ public class UpDownImage extends JPanel {
public int getMinTime() {
return UpDownImage.this.wr.getMinTime();
}
@Override
public String toString() {
return "TimeAxisTranslator " + zoomProvider;
}
};
}
@ -285,4 +290,11 @@ public class UpDownImage extends JPanel {
this.pin = pin;
setToolTip();
}
@Override
public String toString() {
return "UpDownImage{" +
"zoomProvider=" + zoomProvider +
"} " + super.toString();
}
}