EGT in gppwm channel

This commit is contained in:
Matthew Kennedy 2024-05-09 22:23:41 -07:00
parent 8a103f1edf
commit 65a8928bbb
3 changed files with 7 additions and 1 deletions

View File

@ -70,6 +70,10 @@ expected<float> readGppwmChannel(gppwm_channel_e channel) {
return Sensor::get(SensorType::DetectedGear);
case GPPWM_BaroPressure:
return Sensor::get(SensorType::BarometricPressure);
case GPPWM_Egt1:
return Sensor::get(SensorType::EGT1);
case GPPWM_Egt2:
return Sensor::get(SensorType::EGT2);
}
return unexpected;

View File

@ -523,6 +523,8 @@ typedef enum __attribute__ ((__packed__)) {
GPPWM_Rpm = 24,
GPPWM_DetectedGear = 25,
GPPWM_BaroPressure = 26,
GPPWM_Egt1 = 27,
GPPWM_Egt2 = 28,
} gppwm_channel_e;
typedef enum __attribute__ ((__packed__)) {

View File

@ -302,7 +302,7 @@ custom pin_output_mode_e 1 bits, U08, @OFFSET@, [0:1], @@pin_output_mode_e_enum@
#define pin_input_mode_e_enum "DEFAULT", "PULLUP", "PULLDOWN"
custom pin_input_mode_e 1 bits, U08, @OFFSET@, [0:1], @@pin_input_mode_e_enum@@
#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", "RPM", "Gear (detected)", "Baro pressure"
#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", "RPM", "Gear (detected)", "Baro pressure", "EGT 1", "EGT 2"
custom gppwm_channel_e 1 bits, U08, @OFFSET@, [0:4], @@gppwm_channel_e_enum@@
struct gppwm_channel