From 4c9f7065520a0f549022caad631f591391c84a02 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 19 Jul 2024 19:43:11 -0400 Subject: [PATCH] ambientTempGauge --- firmware/console/binary/output_channels.txt | 4 +++- firmware/console/status_loop.cpp | 1 + firmware/tunerstudio/tunerstudio.template.ini | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/console/binary/output_channels.txt b/firmware/console/binary/output_channels.txt index 79f3dc7b1d..bda8bfc037 100644 --- a/firmware/console/binary/output_channels.txt +++ b/firmware/console/binary/output_channels.txt @@ -416,5 +416,7 @@ float mapFast int16_t autoscale rawAuxTemp1;;"V",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 5, 3 int16_t autoscale rawAuxTemp2;;"V",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 5, 3 - uint8_t[64 iterate] unusedAtTheEnd;;"",1, 0, 0, 0, 0 + int16_t autoscale rawAmbientTemp;;"V",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 5, 3 + + uint8_t[60 iterate] unusedAtTheEnd;;"",1, 0, 0, 0, 0 end_struct diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index 814f653ebf..2197bea896 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -494,6 +494,7 @@ static void updateRawSensors() { engine->outputChannels.rawIat = Sensor::getRaw(SensorType::Iat); engine->outputChannels.rawAuxTemp1 = Sensor::getRaw(SensorType::AuxTemp1); engine->outputChannels.rawAuxTemp2 = Sensor::getRaw(SensorType::AuxTemp2); + engine->outputChannels.rawAmbientTemp = Sensor::getRaw(SensorType::AmbientTemperature); engine->outputChannels.rawOilPressure = Sensor::getRaw(SensorType::OilPressure); engine->outputChannels.rawAcPressure = Sensor::getRaw(SensorType::AcPressure); engine->outputChannels.rawLowFuelPressure = Sensor::getRaw(SensorType::FuelPressureLow); diff --git a/firmware/tunerstudio/tunerstudio.template.ini b/firmware/tunerstudio/tunerstudio.template.ini index e40fa67965..d8529c9ba3 100644 --- a/firmware/tunerstudio/tunerstudio.template.ini +++ b/firmware/tunerstudio/tunerstudio.template.ini @@ -1518,6 +1518,7 @@ gaugeCategory = Sensors - Extra 1 OilPressGauge = oilPressure, @@GAUGE_NAME_OIL_PRESSURE@@, "kPa", 0, 750, 35, 75, 550, 700, 0, 0 AuxT1Gauge = auxTemp1, @@GAUGE_NAME_AUX_TEMP1@@, "C", -40, 140, -15, 1, 95, 110, 1, 1 AuxT2Gauge = auxTemp2, @@GAUGE_NAME_AUX_TEMP2@@, "C", -40, 140, -15, 1, 95, 110, 1, 1 + ambientTempGauge = ambientTemp, "Ambient Temperature", "C", -40, 140, -15, 1, 95, 110, 1, 1 lowFuelPressureGauge = lowFuelPressure, @@GAUGE_NAME_FUEL_PRESSURE_LOW@@, @@GAUGE_NAME_FUEL_PRESSURE_LOW_UNITS@@, 0, 700, 0, 0, 700, 700, 1, 0 flexPercentGauge = flexPercent, @@GAUGE_NAME_FLEX@@, "%", 0, 100, 0, 0, 100, 100, 0, 0 fuelTempGauge = fuelTemp, @@GAUGE_NAME_FUEL_TEMPERATURE@@, "C", 0, 100, 0, 0, 75, 100, 0, 0