Skip to content

Commit

Permalink
missing raw fuel level gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Sep 20, 2024
1 parent 3a5dca3 commit e3a6289
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions firmware/console/binary/output_channels.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions firmware/console/status_loop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions firmware/tunerstudio/tunerstudio.template.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3a6289

Please sign in to comment.