engine crc for REO

This commit is contained in:
rusefi 2020-05-09 20:04:58 -04:00
parent 7be4c75033
commit c59271c669
2 changed files with 3 additions and 0 deletions

View File

@ -176,6 +176,7 @@ typedef struct {
TsCalMode calibrationMode; // 132
uint8_t padding[1]; // 133
// we want a hash of engineMake+engineCode+vehicleName in the log file in order to match TS logs to rusEFI Online tune
int16_t engineMakeCodeNameCrc16; // 134
// Errors
int totalTriggerErrorCounter; // 136

View File

@ -765,6 +765,8 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_
tsOutputChannels->totalTriggerErrorCounter = engine->triggerCentral.triggerState.totalTriggerErrorCounter;
// 132
tsOutputChannels->orderingErrorCounter = engine->triggerCentral.triggerState.orderingErrorCounter;
// 134 we take 2 bytes of crc32, no idea if it's right to call it crc16 or not
tsOutputChannels->engineMakeCodeNameCrc16 = crc32(engineConfiguration->engineMake, 3 * VEHICLE_INFO_SIZE);
// 68
tsOutputChannels->baroCorrection = engine->engineState.baroCorrection;
// 140