Skip to content

Commit e3a6289

Browse files
committed
missing raw fuel level gauge
1 parent 3a5dca3 commit e3a6289

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

firmware/console/binary/output_channels.txt

+2
Original file line numberDiff line numberDiff line change
@@ -350,4 +350,6 @@ float mapFast
350350
uint8_t[12 iterate] mapPerCylinder;;"kPa", 1, 0, 0, 0, 0
351351

352352
uint16_t autoscale dwellAccuracyRatio;;"ratio", 0.001, 0, 0, 0, 3
353+
354+
uint16_t autoscale rawFuelTankLevel;;"V",{1/@@PACK_MULT_VOLTAGE@@}, 0, 0, 5, 3
353355
end_struct

firmware/console/status_loop.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ static void updateRawSensors() {
364364
engine->outputChannels.rawMaf2 = Sensor::getRaw(SensorType::Maf2);
365365
engine->outputChannels.rawMap = Sensor::getRaw(SensorType::MapSlow);
366366
engine->outputChannels.rawWastegatePosition = Sensor::getRaw(SensorType::WastegatePosition);
367+
engine->outputChannels.rawFuelTankLevel = Sensor::getRaw(SensorType::FuelLevel);
367368

368369
engine->outputChannels.luaGauges[0] = Sensor::getOrZero(SensorType::LuaGauge1);
369370
engine->outputChannels.luaGauges[1] = Sensor::getOrZero(SensorType::LuaGauge2);

firmware/tunerstudio/tunerstudio.template.ini

+1
Original file line numberDiff line numberDiff line change
@@ -1512,6 +1512,7 @@ gaugeCategory = Sensors - Raw
15121512
rawWastegatePositionGauge = rawWastegatePosition,"Raw Wastegate Position","V", 0, 5, 0, 0, 5, 5, 3, 0
15131513
rawLowFuelPressureGauge = rawLowFuelPressure,"Raw fuel pressure (low) voltage","V", 0, 5, 0, 0, 5, 5, 3, 0
15141514
rawHighFuelPressureGauge = rawHighFuelPressure,"Raw fuel pressure (high) voltage","V", 0, 5, 0, 0, 5, 5, 3, 0
1515+
rawFuelTankLevelGauge = rawFuelTankLevel, "Raw fuel level", "V", 0, 5, 0, 0, 5, 5, 3, 0
15151516
rawMafGauge = rawMaf , "Raw MAF", "V", 0, 5, 0, 0, 5, 5, 3, 0
15161517
rawMapGauge = rawMap , "Raw MAP", "V", 0, 5, 0, 0, 5, 5, 3, 0
15171518
rawAfrGauge = rawAfr , "Raw EGO", "V", 0, 5, 0, 0, 5, 5, 3, 0

0 commit comments

Comments
 (0)