public String getControlModeText() { if (mode == ControlMode.CALIBRATE) { return mode.getText() + " (View " + selectedView.getViewIndex() + ")"; } else if (mode == ControlMode.FILL) { return mode.getText() + " (Fill " + selectedView.getViewIndex() + ")"; } return mode.getText(); }
public byte[] ControlCommand(ControlMode mode, int value) { return getATC("CTRL", mode.ordinal() + "," + value); }