add VSS as GPPWM parameter

This commit is contained in:
Matthew Kennedy 2024-09-03 18:58:33 -04:00 committed by Andrey
parent 0ba3cb6ae9
commit ef24f22840
3 changed files with 4 additions and 2 deletions

View File

@ -82,7 +82,8 @@ expected<float> readGppwmChannel(gppwm_channel_e channel) {
return Sensor::get(SensorType::EGT1); return Sensor::get(SensorType::EGT1);
case GPPWM_Egt2: case GPPWM_Egt2:
return Sensor::get(SensorType::EGT2); return Sensor::get(SensorType::EGT2);
case GPPWM_VehicleSpeed:
return Sensor::get(SensorType::VehicleSpeed);
} }
return unexpected; return unexpected;
} }

View File

@ -619,6 +619,7 @@ typedef enum __attribute__ ((__packed__)) {
GPPWM_Egt2 = 28, GPPWM_Egt2 = 28,
GPPWM_AuxLinear3 = 29, GPPWM_AuxLinear3 = 29,
GPPWM_AuxLinear4 = 30, GPPWM_AuxLinear4 = 30,
GPPWM_VehicleSpeed = 31,
// remember to manually sync 'pwmAxisLabels' in tunerstudio.template.ini // remember to manually sync 'pwmAxisLabels' in tunerstudio.template.ini
// todo: rename 'pwmAxisLabels' and maybe even gppwm_channel_e since we now use wider than just 'gppwm'? // todo: rename 'pwmAxisLabels' and maybe even gppwm_channel_e since we now use wider than just 'gppwm'?
} gppwm_channel_e; } gppwm_channel_e;

View File

@ -362,7 +362,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" #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@@ 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", "EGT 1", "EGT 2", "Aux Linear 3", "Aux Linear 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", "RPM", "Gear (detected)", "Baro pressure", "EGT 1", "EGT 2", "Aux Linear 3", "Aux Linear 4", "Vehicle speed"
custom gppwm_channel_e 1 bits, U08, @OFFSET@, [0:4], @@gppwm_channel_e_enum@@ custom gppwm_channel_e 1 bits, U08, @OFFSET@, [0:4], @@gppwm_channel_e_enum@@
struct gppwm_channel struct gppwm_channel