diff --git a/firmware/console/binary/output_channels.txt b/firmware/console/binary/output_channels.txt index 785a70788f..e0f1401758 100644 --- a/firmware/console/binary/output_channels.txt +++ b/firmware/console/binary/output_channels.txt @@ -350,4 +350,6 @@ float mapFast uint8_t[12 iterate] mapPerCylinder;;"kPa", 1, 0, 0, 0, 0 uint16_t autoscale dwellAccuracyRatio;;"ratio", 0.001, 0, 0, 0, 3 + + uint16_t autoscale rawFuelTankLevel;;"V",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 5, 3 end_struct diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index d3a5720957..be785aef3f 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -364,6 +364,7 @@ static void updateRawSensors() { engine->outputChannels.rawMaf2 = Sensor::getRaw(SensorType::Maf2); engine->outputChannels.rawMap = Sensor::getRaw(SensorType::MapSlow); engine->outputChannels.rawWastegatePosition = Sensor::getRaw(SensorType::WastegatePosition); + engine->outputChannels.rawFuelTankLevel = Sensor::getRaw(SensorType::FuelLevel); engine->outputChannels.luaGauges[0] = Sensor::getOrZero(SensorType::LuaGauge1); engine->outputChannels.luaGauges[1] = Sensor::getOrZero(SensorType::LuaGauge2); diff --git a/firmware/tunerstudio/tunerstudio.template.ini b/firmware/tunerstudio/tunerstudio.template.ini index e4eb3e3d66..316e59c3f0 100644 --- a/firmware/tunerstudio/tunerstudio.template.ini +++ b/firmware/tunerstudio/tunerstudio.template.ini @@ -1512,6 +1512,7 @@ gaugeCategory = Sensors - Raw rawWastegatePositionGauge = rawWastegatePosition,"Raw Wastegate Position","V", 0, 5, 0, 0, 5, 5, 3, 0 rawLowFuelPressureGauge = rawLowFuelPressure,"Raw fuel pressure (low) voltage","V", 0, 5, 0, 0, 5, 5, 3, 0 rawHighFuelPressureGauge = rawHighFuelPressure,"Raw fuel pressure (high) voltage","V", 0, 5, 0, 0, 5, 5, 3, 0 + rawFuelTankLevelGauge = rawFuelTankLevel, "Raw fuel level", "V", 0, 5, 0, 0, 5, 5, 3, 0 rawMafGauge = rawMaf , "Raw MAF", "V", 0, 5, 0, 0, 5, 5, 3, 0 rawMapGauge = rawMap , "Raw MAP", "V", 0, 5, 0, 0, 5, 5, 3, 0 rawAfrGauge = rawAfr , "Raw EGO", "V", 0, 5, 0, 0, 5, 5, 3, 0