multi-channel Tuner Studio tooth logger #1284

reducing magic constants
This commit is contained in:
rusefi 2020-04-12 19:10:36 -04:00
parent db11791eb2
commit 167f484d8f
3 changed files with 5 additions and 2 deletions

View File

@ -76,6 +76,8 @@ struct_no_prefix engine_configuration_s
#define TRIGGER_TYPE_60_2 8
#define TRIGGER_TYPE_36_1 9
#define COMPOSITE_PACKET_SIZE 2
#define MAP_ANGLE_SIZE 8
#define MAP_WINDOW_SIZE 8

View File

@ -117,7 +117,7 @@ enable2ndByteCanID = false
dataReadyCondition = { toothLogReady }
; recordDef = headerLen, footerLen, recordLen
recordDef = 0, 0, 2; in bytes, the recordLen is for each record, currently limited to 4 bytes
recordDef = 0, 0, @@COMPOSITE_PACKET_SIZE@@
; uint16 that stores 1/100 second
recordField = toothTime, "tooth", 0, 16, 0.01, "ms"

View File

@ -1,6 +1,6 @@
package com.rusefi.config.generated;
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Sat Apr 11 22:16:11 EDT 2020
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Sun Apr 12 19:03:41 EDT 2020
// by class com.rusefi.output.FileJavaFieldsConsumer
import com.rusefi.config.*;
@ -285,6 +285,7 @@ public class Fields {
public static final int coastingFuelCutTps_offset = 3152;
public static final int communicationLedPin_offset = 1812;
public static final int communicationLedPin_offset_hex = 714;
public static final int COMPOSITE_PACKET_SIZE = 2;
public static final String CONSOLE_DATA_PROTOCOL_TAG = " @";
public static final int consoleLoopPeriodMs_offset = 716;
public static final int consoleSerialRxPin_offset = 1819;