This commit is contained in:
Matthew Kennedy 2020-08-21 05:53:23 -07:00 committed by GitHub
parent a73d5718a7
commit c450ea7fcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View File

@ -226,8 +226,11 @@ typedef struct {
int16_t tuneCrc16; // 244
uint8_t sd_status; // 246
uint8_t pad;
uint8_t unusedAtTheEnd[41]; // we have some unused bytes to allow compatible TS changes
scaled_voltage rawPpsSecondary; // 248
uint8_t unusedAtTheEnd[38]; // we have some unused bytes to allow compatible TS changes
// Temporary - will remove soon
TsDebugChannels* getDebugChannels() {

View File

@ -513,6 +513,7 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_
// Set raw sensors
tsOutputChannels->rawTps1Primary = Sensor::getRaw(SensorType::Tps1Primary);
tsOutputChannels->rawPpsPrimary = Sensor::getRaw(SensorType::AcceleratorPedalPrimary);
tsOutputChannels->rawPpsSecondary = Sensor::getRaw(SensorType::AcceleratorPedalSecondary);
tsOutputChannels->rawClt = Sensor::getRaw(SensorType::Clt);
tsOutputChannels->rawIat = Sensor::getRaw(SensorType::Iat);
tsOutputChannels->rawOilPressure = Sensor::getRaw(SensorType::OilPressure);

View File

@ -337,6 +337,7 @@ enable2ndByteCanID = false
rawClt = scalar, U16, 238, "V",{1/@@PACK_MULT_VOLTAGE@@}, 0.0
rawIat = scalar, U16, 240, "V",{1/@@PACK_MULT_VOLTAGE@@}, 0.0
rawOilPressure = scalar, U16, 242, "V",{1/@@PACK_MULT_VOLTAGE@@}, 0.0
rawPpsSecondary = scalar, U16, 248, "V",{1/@@PACK_MULT_VOLTAGE@@}, 0.0
; we use this to match logs to tunes
tuneCrc16 = scalar, U16, 244, "crc16", 1, 0
@ -953,6 +954,7 @@ gaugeCategory = Sensors - Raw
rawCltGauge = rawClt , "Raw CLT", "volts", 0, 5, 0, 0, 5, 5, 3, 0
rawIatGauge = rawIat , "Raw IAT", "volts", 0, 5, 0, 0, 5, 5, 3, 0
rawOilPressureGauge = rawOilPressure, "Raw Oil Pressure", "volts", 0, 5, 0, 0, 5, 5, 3, 0
rawPpsSecondaryGauge = rawPpsSecondary,"Raw Pedal Secondary","volts", 0, 5, 0, 0, 5, 5, 3, 0
[WueAnalyze]
@ -1755,6 +1757,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@\x00\x31\x00\x00"
dialog = pedalGauges
gauge = pedalPositionGauge
gauge = rawPpsPrimaryGauge
gauge = rawPpsSecondaryGauge
dialog = pedalSensor, "Accelerator pedal", border
panel = pedalSensorLeft, West