auto-sync

This commit is contained in:
rusEfi 2017-01-19 16:03:23 -05:00
parent 6b3e07cc22
commit b482a9f93c
4 changed files with 44 additions and 1 deletions

View File

@ -0,0 +1,18 @@
#
# in this file we define system FSIO expression
#
# see http://rusefi.com/wiki/index.php?title=Manual:Flexible_Logic
#
# Jan 19, 2017
# Andrey Belomutskiy, (c) 2012-2017
#
FAN_CONTROL_LOGIC=(fan and (coolant > fan_off_setting)) OR (coolant > fan_on_setting)
FUEL_PUMP_LOGIC=(time_since_boot < 4) OR (rpm > 0)
ALTERNATOR_LOGIC=vbatt < 14.5
AC_RELAY_LOGIC=ac_on_switch

View File

@ -0,0 +1 @@
java -jar ../java_console_binary/rusefi_console.jar compile_fsio_file controllers/system_fsio.txt a

View File

@ -0,0 +1,16 @@
package com.rusefi;
import java.util.List;
/**
* http://rusefi.com/wiki/index.php?title=Manual:Flexible_Logic
*
* (c) Andrey Belomutskiy 2013-2017
* 1/19/2017
*/
public class CompileTool {
public static void run(List<String> args) {
System.out.println("Params " + args);
}
}

View File

@ -22,6 +22,7 @@ import jssc.SerialPortList;
import javax.swing.*;
import java.awt.*;
import java.util.Arrays;
import java.util.TimeZone;
import java.util.concurrent.atomic.AtomicReference;
@ -38,7 +39,7 @@ import static com.rusefi.ui.storage.PersistentConfiguration.getConfig;
* @see EngineSnifferPanel
*/
public class Launcher {
public static final int CONSOLE_VERSION = 20170111;
public static final int CONSOLE_VERSION = 20170118;
public static final boolean SHOW_STIMULATOR = false;
private static final String TAB_INDEX = "main_tab";
protected static final String PORT_KEY = "port";
@ -252,6 +253,13 @@ public class Launcher {
}
public static void main(final String[] args) throws Exception {
String toolName = args.length == 0 ? null : args[0];
if ("compile_fsio_file".equalsIgnoreCase(toolName)) {
CompileTool.run(Arrays.asList(args).subList(1, args.length - 1));
return;
}
FileLog.MAIN.start();
getConfig().load();
FileLog.suspendLogging = getConfig().getRoot().getBoolProperty(GaugesPanel.DISABLE_LOGS);