that's how I use it
This commit is contained in:
parent
c18c7086d0
commit
719354387c
|
@ -0,0 +1,7 @@
|
|||
call gradlew jar
|
||||
|
||||
mkdir -p output
|
||||
java -Dmlq_file_name=output/cl_revving.mlg -jar build/libs/can-log-tools-0.1-SNAPSHOT.jar opendbc/vw_golf_mk4_small.dbc ..\rusefi_documentation\OEM-Docs\VAG\2006-Passat-B6\passat-b6-stock-ecu-ecu-ptcan-parked-revving.trc
|
||||
java -Dmlq_file_name=output/cl_gears.mlg -jar build/libs/can-log-tools-0.1-SNAPSHOT.jar opendbc/vw_golf_mk4_small.dbc ..\rusefi_documentation\OEM-Docs\VAG\2006-Passat-B6\passat-b6-stock-ecu-ecu-ptcan-parked-shifting-gears.trc
|
||||
java -Dmlq_file_name=output/cl_running-pedal-up-and-down.mlg -jar build/libs/can-log-tools-0.1-SNAPSHOT.jar opendbc/vw_golf_mk4_small.dbc ..\rusefi_documentation\OEM-Docs\VAG\2006-Passat-B6\passat-b6-stock-ecu-ecu-ptcan-not-running-pedal-up-and-down.trc
|
||||
|
|
@ -107,6 +107,9 @@ public class BinarySensorLog<T extends BinaryLogEntry> implements SensorLog, Aut
|
|||
stream.writeInt((int) (System.currentTimeMillis() / 1000));
|
||||
// 000ch
|
||||
int offsetToText = Fields.MLQ_HEADER_SIZE + Fields.MLQ_FIELD_HEADER_SIZE * entries.size();
|
||||
System.out.println("Total " + entries.size() + " fields");
|
||||
if (offsetToText > 32000)
|
||||
throw new IllegalStateException("Too much header " + offsetToText);
|
||||
stream.writeShort(offsetToText);
|
||||
stream.writeShort(0); // reserved?
|
||||
// 0010h = offset_to_data
|
||||
|
|
Loading…
Reference in New Issue