ETB tiny progress
This commit is contained in:
parent
5ea6ac01f9
commit
a555aaba4e
|
@ -807,6 +807,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 20190425;
|
return 20190430;
|
||||||
}
|
}
|
||||||
#endif /* EFI_UNIT_TEST */
|
#endif /* EFI_UNIT_TEST */
|
||||||
|
|
|
@ -1349,6 +1349,10 @@ void initSettings(void) {
|
||||||
addConsoleActionP("showconfig", (VoidPtr) doPrintConfiguration, &engine);
|
addConsoleActionP("showconfig", (VoidPtr) doPrintConfiguration, &engine);
|
||||||
addConsoleAction("tempinfo", printTemperatureInfo);
|
addConsoleAction("tempinfo", printTemperatureInfo);
|
||||||
addConsoleAction("tpsinfo", printTPSInfo);
|
addConsoleAction("tpsinfo", printTPSInfo);
|
||||||
|
addConsoleAction("calibrate_tps_1_closed", grabTPSIsClosed);
|
||||||
|
addConsoleAction("calibrate_tps_1_wot", grabTPSIsWideOpen);
|
||||||
|
addConsoleAction("calibrate_pedal_up", grabPedalIsUp);
|
||||||
|
addConsoleAction("calibrate_pedal_down", grabPedalIsWideOpen);
|
||||||
addConsoleAction("info", printAllInfo);
|
addConsoleAction("info", printAllInfo);
|
||||||
|
|
||||||
addConsoleAction("set_one_coil_ignition", setOneCoilIgnition);
|
addConsoleAction("set_one_coil_ignition", setOneCoilIgnition);
|
||||||
|
|
|
@ -45,7 +45,7 @@ import static com.rusefi.ui.storage.PersistentConfiguration.getConfig;
|
||||||
* @see EngineSnifferPanel
|
* @see EngineSnifferPanel
|
||||||
*/
|
*/
|
||||||
public class Launcher {
|
public class Launcher {
|
||||||
public static final int CONSOLE_VERSION = 20190424;
|
public static final int CONSOLE_VERSION = 20190430;
|
||||||
public static final boolean SHOW_STIMULATOR = false;
|
public static final boolean SHOW_STIMULATOR = false;
|
||||||
private static final String TAB_INDEX = "main_tab";
|
private static final String TAB_INDEX = "main_tab";
|
||||||
protected static final String PORT_KEY = "port";
|
protected static final String PORT_KEY = "port";
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
package com.rusefi.ui.etb;
|
package com.rusefi.ui.etb;
|
||||||
|
|
||||||
|
import com.rusefi.io.CommandQueue;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.putgemin.VerticalFlowLayout;
|
import org.putgemin.VerticalFlowLayout;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
import java.awt.event.ActionEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (c) Andrey Belomutskiy
|
* (c) Andrey Belomutskiy
|
||||||
|
@ -13,17 +15,22 @@ public class CalibrationPanel {
|
||||||
|
|
||||||
public CalibrationPanel() {
|
public CalibrationPanel() {
|
||||||
content.setBorder(BorderFactory.createTitledBorder("Calibration"));
|
content.setBorder(BorderFactory.createTitledBorder("Calibration"));
|
||||||
content.add(createCommandButton("Grab TPS#1 fully closed"));
|
content.add(createCommandButton("Grab TPS#1 fully closed", "calibrate_tps_1_closed"));
|
||||||
content.add(createCommandButton("Grab TPS#1 Wide Open"));
|
content.add(createCommandButton("Grab TPS#1 Wide Open", "calibrate_tps_1_wot"));
|
||||||
|
|
||||||
content.add(createCommandButton("Grab Pedal Up"));
|
content.add(createCommandButton("Grab Pedal Up", "calibrate_pedal_up"));
|
||||||
content.add(createCommandButton("Grab Pedal Down"));
|
content.add(createCommandButton("Grab Pedal Down", "calibrate_pedal_down"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private JButton createCommandButton(String s) {
|
private JButton createCommandButton(String caption, String command) {
|
||||||
JButton button = new JButton(s);
|
JButton button = new JButton(caption);
|
||||||
button.setEnabled(false);
|
button.addActionListener(new AbstractAction() {
|
||||||
|
@Override
|
||||||
|
public void actionPerformed(ActionEvent e) {
|
||||||
|
CommandQueue.getInstance().write(command);
|
||||||
|
}
|
||||||
|
});
|
||||||
return button;
|
return button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue