tuneCrc16 - we use it to match logs to tunes

This commit is contained in:
rusefi 2020-06-04 20:07:00 -04:00
parent 590cf84be1
commit 747ec8cf4a
2 changed files with 6 additions and 1 deletions

View File

@ -216,7 +216,8 @@ typedef struct {
scaled_voltage rawIat; // 236
scaled_voltage rawOilPressure; // 238
uint8_t unusedAtTheEnd[4]; // we have some unused bytes to allow compatible TS changes
int16_t tuneCrc16;
uint8_t unusedAtTheEnd[2]; // we have some unused bytes to allow compatible TS changes
// Temporary - will remove soon
TsDebugChannels* getDebugChannels() {

View File

@ -359,6 +359,9 @@ enable2ndByteCanID = false
rawIat = scalar, U16, 236, "V",{1/@@PACK_MULT_VOLTAGE@@}, 0.0
rawOilPressure = scalar, U16, 238, "V",{1/@@PACK_MULT_VOLTAGE@@}, 0.0
; we use this to match logs to tunes
tuneCrc16= scalar, U16, 240, "crc16", 1, 0
;
; see TunerStudioOutputChannels struct
;
@ -1207,6 +1210,7 @@ gaugeCategory = Sensors - Raw
entry = engineMakeCodeNameCrc16, "Engine CRC16",int,"%d"
entry = tuneCrc16, "Tune CRC16",int,"%d"
entry = engineMode, "Engine Mode",int,"%d"
entry = warningCounter, @@GAUGE_NAME_WARNING_COUNTER@@,int,"%d"