diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index e40ee2cf2f..d7a38d9b82 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -513,6 +513,7 @@ static void updateRawSensors() { engine->outputChannels.rawIdlePositionSensor = Sensor::getRaw(SensorType::IdlePosition); engine->outputChannels.luaGauges[0] = Sensor::getRaw(SensorType::LuaGauge1); + engine->outputChannels.luaGauges[1] = Sensor::getRaw(SensorType::LuaGauge2); for (int i = 0;iauxAnalogInputs[i]; diff --git a/firmware/controllers/actuators/gppwm/gppwm_channel.cpp b/firmware/controllers/actuators/gppwm/gppwm_channel.cpp index 254f454414..329d617aa8 100644 --- a/firmware/controllers/actuators/gppwm/gppwm_channel.cpp +++ b/firmware/controllers/actuators/gppwm/gppwm_channel.cpp @@ -18,6 +18,10 @@ expected readGppwmChannel(gppwm_channel_e channel) { return Sensor::get(SensorType::Clt); case GPPWM_Iat: return Sensor::get(SensorType::Iat); + case GPPWM_LuaGauge1: + return Sensor::get(SensorType::LuaGauge1); + case GPPWM_LuaGauge2: + return Sensor::get(SensorType::LuaGauge2); case GPPWM_FuelLoad: return getFuelingLoad(); case GPPWM_IgnLoad: diff --git a/firmware/controllers/algo/rusefi_enums.h b/firmware/controllers/algo/rusefi_enums.h index 47fa0223fc..14aa35a139 100644 --- a/firmware/controllers/algo/rusefi_enums.h +++ b/firmware/controllers/algo/rusefi_enums.h @@ -559,6 +559,8 @@ typedef enum __attribute__ ((__packed__)) { GPPWM_GppwmOutput2 = 19, GPPWM_GppwmOutput3 = 20, GPPWM_GppwmOutput4 = 21, + GPPWM_LuaGauge1 = 22, + GPPWM_LuaGauge2 = 23, } gppwm_channel_e; typedef enum __attribute__ ((__packed__)) { diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 1b20851823..621802c6f2 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -349,7 +349,7 @@ struct spi_pins end_struct -#define gppwm_channel_e_enum "Zero", "TPS", "MAP", "CLT", "IAT", "Fuel Load", "Ignition Load", "Aux Temp 1", "Aux Temp 2", "Accel Pedal", "Battery Voltage", "VVT 1 I", "VVT 1 E", "VVT 2 I", "VVT 2 E", "Ethanol (Flex) %", "Aux Linear 1", "Aux Linear 2", "GPPWM Output 1", "GPPWM Output 2", "GPPWM Output 3", "GPPWM Output 4" +#define gppwm_channel_e_enum "Zero", "TPS", "MAP", "CLT", "IAT", "Fuel Load", "Ignition Load", "Aux Temp 1", "Aux Temp 2", "Accel Pedal", "Battery Voltage", "VVT 1 I", "VVT 1 E", "VVT 2 I", "VVT 2 E", "Ethanol (Flex) %", "Aux Linear 1", "Aux Linear 2", "GPPWM Output 1", "GPPWM Output 2", "GPPWM Output 3", "GPPWM Output 4", "Lua Gauge 1", "Lua Gauge 2" custom gppwm_channel_e 1 bits, U08, @OFFSET@, [0:4], @@gppwm_channel_e_enum@@ struct gppwm_channel