Console should get much smarter around compatibility with older units #6845
This commit is contained in:
parent
a4bcfd1955
commit
2bc19e703e
|
@ -2398,10 +2398,6 @@ end_struct
|
|||
#define TS_TRIGGER_SCOPE_CHANNEL_1_NAME "Channel 1"
|
||||
#define TS_TRIGGER_SCOPE_CHANNEL_2_NAME "Channel 2"
|
||||
|
||||
#define PROTOCOL_COIL_SHORT_PREFIX "c"
|
||||
#define PROTOCOL_INJ_SHORT_PREFIX "i"
|
||||
#define PROTOCOL_INJ_STAGE2_SHORT_PREFIX "j"
|
||||
|
||||
#define SIMULATOR_TUNE_BIN_FILE_NAME_PREFIX "generated/simulator_tune_image"
|
||||
#define SIMULATOR_TUNE_BIN_FILE_NAME_SUFFIX ".bin"
|
||||
#define SIMULATOR_TUNE_BIN_FILE_NAME "generated/simulator_tune_image.bin"
|
||||
|
|
|
@ -158,6 +158,10 @@
|
|||
#define PROTOCOL_CRANK1 "t1"
|
||||
#define PROTOCOL_CRANK2 "t2"
|
||||
|
||||
#define PROTOCOL_COIL_SHORT_PREFIX "c"
|
||||
#define PROTOCOL_INJ_SHORT_PREFIX "i"
|
||||
#define PROTOCOL_INJ_STAGE2_SHORT_PREFIX "j"
|
||||
|
||||
#define MLQ_HEADER_SIZE 24
|
||||
#define MLQ_FIELD_HEADER_SIZE 89
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// generated by class com.rusefi.SimpleDefinesProcessor
|
||||
package com.rusefi.config.generated;
|
||||
|
||||
public class Integration {
|
||||
|
@ -63,12 +64,15 @@ public class Integration {
|
|||
public static final int MLQ_FIELD_HEADER_SIZE = 89;
|
||||
public static final int MLQ_HEADER_SIZE = 24;
|
||||
public static final String PROTOCOL_ANALOG_CHART = "analog_chart";
|
||||
public static final String PROTOCOL_COIL_SHORT_PREFIX = "c";
|
||||
public static final String PROTOCOL_CRANK1 = "t1";
|
||||
public static final String PROTOCOL_CRANK2 = "t2";
|
||||
public static final String PROTOCOL_ENGINE_SNIFFER = "wave_chart";
|
||||
public static final String PROTOCOL_ES_DOWN = "d";
|
||||
public static final String PROTOCOL_ES_UP = "u";
|
||||
public static final String PROTOCOL_HELLO_PREFIX = "***";
|
||||
public static final String PROTOCOL_INJ_SHORT_PREFIX = "i";
|
||||
public static final String PROTOCOL_INJ_STAGE2_SHORT_PREFIX = "j";
|
||||
public static final String PROTOCOL_MSG = "msg";
|
||||
public static final String PROTOCOL_OUTPIN = "outpin";
|
||||
public static final String PROTOCOL_SIGNATURE_PREFIX = "rusEFI ";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package com.rusefi.ui.engine;
|
||||
|
||||
import com.rusefi.config.generated.Fields;
|
||||
import com.rusefi.config.generated.Integration;
|
||||
import com.rusefi.core.Sensor;
|
||||
|
||||
import java.util.Map;
|
||||
|
@ -14,7 +15,7 @@ public class NameUtil {
|
|||
static String getUiName(String name) {
|
||||
if (name.isEmpty())
|
||||
return name;
|
||||
if (name.charAt(0) == Fields.PROTOCOL_CRANK1.charAt(0))
|
||||
if (name.charAt(0) == Integration.PROTOCOL_CRANK1.charAt(0))
|
||||
return "Trigger #" + name.substring(1);
|
||||
if (name.charAt(0) == Fields.PROTOCOL_COIL_SHORT_PREFIX.charAt(0))
|
||||
return "Coil #" + name.substring(1);
|
||||
|
|
|
@ -21,6 +21,7 @@ public class SimpleDefinesProcessor {
|
|||
|
||||
String className = "Integration";
|
||||
LazyFile javaFields = LazyFile.REAL.create(LiveDataProcessor.JAVA_DESTINATION + className + ".java");
|
||||
javaFields.write("// generated by " + SimpleDefinesProcessor.class + "\n");
|
||||
FileJavaFieldsConsumer.writePackageLine(javaFields);
|
||||
FileJavaFieldsConsumer.writeClassOpenLine(javaFields, className);
|
||||
javaFields.write(variableRegistry.getJavaConstants());
|
||||
|
|
Loading…
Reference in New Issue