parent
6bdd773a96
commit
b9d8416fb2
|
@ -30,6 +30,8 @@ expected<float> readGppwmChannel(gppwm_channel_e channel DECLARE_ENGINE_PARAMETE
|
||||||
return Sensor::get(SensorType::AuxTemp2);
|
return Sensor::get(SensorType::AuxTemp2);
|
||||||
case GPPWM_Zero:
|
case GPPWM_Zero:
|
||||||
return 0;
|
return 0;
|
||||||
|
case GPPWM_AccelPedal:
|
||||||
|
return Sensor::get(SensorType::AcceleratorPedal);
|
||||||
}
|
}
|
||||||
|
|
||||||
return unexpected;
|
return unexpected;
|
||||||
|
|
|
@ -1000,6 +1000,7 @@ typedef enum __attribute__ ((__packed__)) {
|
||||||
GPPWM_AuxTemp1 = 6,
|
GPPWM_AuxTemp1 = 6,
|
||||||
GPPWM_AuxTemp2 = 7,
|
GPPWM_AuxTemp2 = 7,
|
||||||
GPPWM_Zero = 8,
|
GPPWM_Zero = 8,
|
||||||
|
GPPWM_AccelPedal = 9,
|
||||||
} gppwm_channel_e;
|
} gppwm_channel_e;
|
||||||
|
|
||||||
typedef enum __attribute__ ((__packed__)) {
|
typedef enum __attribute__ ((__packed__)) {
|
||||||
|
|
|
@ -334,7 +334,7 @@ struct spi_pins
|
||||||
end_struct
|
end_struct
|
||||||
|
|
||||||
|
|
||||||
#define gppwm_channel_e_enum "TPS", "MAP", "CLT", "IAT", "Fuel Load", "Ignition Load", "Aux Temp 1", "Aux Temp 2", "Zero"
|
#define gppwm_channel_e_enum "TPS", "MAP", "CLT", "IAT", "Fuel Load", "Ignition Load", "Aux Temp 1", "Aux Temp 2", "Zero", "Accel Pedal"
|
||||||
custom gppwm_channel_e 1 bits, U08, @OFFSET@, [0:3], @@gppwm_channel_e_enum@@
|
custom gppwm_channel_e 1 bits, U08, @OFFSET@, [0:3], @@gppwm_channel_e_enum@@
|
||||||
|
|
||||||
struct gppwm_channel
|
struct gppwm_channel
|
||||||
|
|
Loading…
Reference in New Issue