diff --git a/firmware/CHANGELOG.md b/firmware/CHANGELOG.md index ac02ba7334..927e8c89d3 100644 --- a/firmware/CHANGELOG.md +++ b/firmware/CHANGELOG.md @@ -32,6 +32,7 @@ Release template (copy/paste this for new release): - Flex Fuel sensor settings should be under "Fuel sensor" #7097 - GM SENT fuel pressure sensor #6997 - ETB calibration automatically enables ETB if needed #7197 + - Fuel Level Sensor should have a RAW option #6979 ### Fixed - Critical error when using big values on Boost Control Open Loop with Y axis as MAP #7093 diff --git a/firmware/console/binary/output_channels.txt b/firmware/console/binary/output_channels.txt index b906367a8a..a8694d2395 100644 --- a/firmware/console/binary/output_channels.txt +++ b/firmware/console/binary/output_channels.txt @@ -187,6 +187,7 @@ int16_t rpmAcceleration;dRPM;"RPM acceleration/Rate of Change/ROC",1, 0, 0, 5, 2 int16_t autoscale rawIat;;"V",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 5, 3 int16_t autoscale rawOilPressure;;"V",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 5, 3 int16_t autoscale rawAcPressure;;"V",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 5, 3 + int16_t autoscale rawFuelLevel;;"V",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 5, 3 uint8_t fuelClosedLoopBinIdx;;"", 1, 0, 0, 0, 0 diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index a6bfdc8b15..44312fa39d 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -481,6 +481,7 @@ static void updateRawSensors() { engine->outputChannels.rawAuxTemp2 = Sensor::getRaw(SensorType::AuxTemp2); engine->outputChannels.rawAmbientTemp = Sensor::getRaw(SensorType::AmbientTemperature); engine->outputChannels.rawOilPressure = Sensor::getRaw(SensorType::OilPressure); + engine->outputChannels.rawFuelLevel = Sensor::getRaw(SensorType::FuelLevel); engine->outputChannels.rawAcPressure = Sensor::getRaw(SensorType::AcPressure); engine->outputChannels.rawLowFuelPressure = Sensor::getRaw(SensorType::FuelPressureLow); engine->outputChannels.rawHighFuelPressure = Sensor::getRaw(SensorType::FuelPressureHigh); diff --git a/firmware/tunerstudio/tunerstudio.template.ini b/firmware/tunerstudio/tunerstudio.template.ini index 10a7509a0b..0079c442ff 100644 --- a/firmware/tunerstudio/tunerstudio.template.ini +++ b/firmware/tunerstudio/tunerstudio.template.ini @@ -1730,6 +1730,7 @@ gaugeCategory = Sensors - Raw rawAuxTemp2Gauge = rawAuxTemp2 , "Raw Aux Temp2", "V", 0, 5, 0, 0, 5, 5, 3, 0 rawAmbientTempGauge = rawAmbientTemp , "Raw Ambient Temp", "V", 0, 5, 0, 0, 5, 5, 3, 0 rawOilPressureGauge = rawOilPressure, "Raw Oil Pressure", "V", 0, 5, 0, 0, 5, 5, 3, 0 + rawFuelLevelGauge = rawFuelLevel, "Raw Fuel Level", "V", 0, 5, 0, 0, 5, 5, 3, 0 rawAcPressureGauge = rawAcPressure, "Raw A/C Pressure", "V", 0, 5, 0, 0, 5, 5, 3, 0 rawIdlePositionSensorGauge = rawIdlePositionSensor, "Raw Idle Position", "V", 0, 5, 0, 0, 5, 5, 3, 0 rawWastegatePositionGauge = rawWastegatePosition,"Raw Wastegate Position","V", 0, 5, 0, 0, 5, 5, 3, 0