rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Enumerations
sensor_type.h File Reference

Detailed Description

Enumeration of sensors supported by the ECU.

Date
September 12, 2019
Author
Matthew Kennedy, (c) 2019

Definition in file sensor_type.h.

Enumerations

enum class  SensorType : unsigned char {
  Invalid , Clt , Iat , Rpm ,
  Map , Maf , AmbientTemperature , OilPressure ,
  OilTemperature , FuelPressureLow , FuelPressureHigh , FuelPressureInjector ,
  FuelTemperature , Tps1 , Tps1Primary , Tps1Secondary ,
  Tps2 , Tps2Primary , Tps2Secondary , AcceleratorPedalUnfiltered ,
  AcceleratorPedal , AcceleratorPedalPrimary , AcceleratorPedalSecondary , DriverThrottleIntent ,
  AuxTemp1 , AuxTemp2 , Lambda1 , Lambda2 ,
  SmoothedLambda1 , SmoothedLambda2 , WastegatePosition , IdlePosition ,
  FuelEthanolPercent , BatteryVoltage , BarometricPressure , FuelLevel ,
  VehicleSpeed , WheelSlipRatio , TurbochargerSpeed , MapFast ,
  MapSlow , InputShaftSpeed , EGT1 , EGT2 ,
  EGT3 , EGT4 , EGT5 , EGT6 ,
  EGT7 , EGT8 , Maf2 , Map2 ,
  MapSlow2 , MapFast2 , CompressorDischargePressure , CompressorDischargeTemperature ,
  ThrottleInletPressure , DetectedGear , RangeInput1 , RangeInput2 ,
  RangeInput3 , RangeInput4 , RangeInput5 , RangeInput6 ,
  AuxAnalog1 , AuxAnalog2 , AuxAnalog3 , AuxAnalog4 ,
  AuxAnalog5 , AuxAnalog6 , AuxAnalog7 , AuxAnalog8 ,
  LuaGauge1 , LuaGauge2 , LuaGauge3 , LuaGauge4 ,
  LuaGauge5 , LuaGauge6 , LuaGauge7 , LuaGauge8 ,
  IgnKeyVoltage , DashOverrideRpm , DashOverrideVehicleSpeed , DashOverrideClt ,
  DashOverrideBatteryVoltage , AcPressure , AuxLinear1 , AuxLinear2 ,
  AuxLinear3 , AuxLinear4 , AuxSpeed1 , AuxSpeed2 ,
  PlaceholderLast
}
 

Enumeration Type Documentation

◆ SensorType

enum class SensorType : unsigned char
strong

SEE sensor.h ON HOW TO ADD NEW SENSOR TYPES

Enumerator
Invalid 
Clt 
Iat 
Rpm 
Map 

This value is result of averaging within user-defined window See also MapFast, MapSlow oh, and there is instantMap which is third thing not part of sensor framework this sensor is Post-TB MAP Sensor for ThrottleInletPressure see ThrottleInletPressure

Maf 
AmbientTemperature 
OilPressure 
OilTemperature 
FuelPressureLow 
FuelPressureHigh 
FuelPressureInjector 
FuelTemperature 
Tps1 
Tps1Primary 
Tps1Secondary 
Tps2 
Tps2Primary 
Tps2Secondary 
AcceleratorPedalUnfiltered 
AcceleratorPedal 
AcceleratorPedalPrimary 
AcceleratorPedalSecondary 
DriverThrottleIntent 
AuxTemp1 
AuxTemp2 
Lambda1 
Lambda2 
SmoothedLambda1 
SmoothedLambda2 
WastegatePosition 
IdlePosition 
FuelEthanolPercent 
BatteryVoltage 
BarometricPressure 
FuelLevel 
VehicleSpeed 
WheelSlipRatio 
TurbochargerSpeed 
MapFast 
MapSlow 
InputShaftSpeed 
EGT1 
EGT2 
EGT3 
EGT4 
EGT5 
EGT6 
EGT7 
EGT8 
Maf2 
Map2 
MapSlow2 
MapFast2 
CompressorDischargePressure 
CompressorDischargeTemperature 
ThrottleInletPressure 
DetectedGear 
RangeInput1 
RangeInput2 
RangeInput3 
RangeInput4 
RangeInput5 
RangeInput6 
AuxAnalog1 
AuxAnalog2 
AuxAnalog3 
AuxAnalog4 
AuxAnalog5 
AuxAnalog6 
AuxAnalog7 
AuxAnalog8 
LuaGauge1 
LuaGauge2 
LuaGauge3 
LuaGauge4 
LuaGauge5 
LuaGauge6 
LuaGauge7 
LuaGauge8 
IgnKeyVoltage 
DashOverrideRpm 
DashOverrideVehicleSpeed 
DashOverrideClt 
DashOverrideBatteryVoltage 
AcPressure 
AuxLinear1 
AuxLinear2 
AuxLinear3 
AuxLinear4 
AuxSpeed1 
AuxSpeed2 
PlaceholderLast 

Definition at line 18 of file sensor_type.h.

18 : unsigned char {
19 Invalid, // we need indeces for Lua consumers. At the moment we still do not expose constants into Lua :(
20 Clt, // 1
21 Iat,
22 Rpm,
23 /**
24 * This value is result of averaging within user-defined window
25 * See also MapFast, MapSlow
26 * oh, and there is instantMap which is third thing not part of sensor framework
27 * this sensor is Post-TB MAP Sensor
28 * for ThrottleInletPressure see ThrottleInletPressure
29 */
30 Map,
31 Maf,
32
34
37
38 FuelPressureLow, // in kPa
39 FuelPressureHigh, // in kPa
40 // ProxySensor for one of the above
42
44
45 // This is the "resolved" position, potentially composited out of the following two
46 Tps1, // 10
47 // This is the first sensor
49 // This is the second sensor
51
52 Tps2,
55
56 // Redundant and combined sensors for acc pedal
59 // pedal according to only first physical sensor
61 // pedal according to only second physical sensor
63
64 // This maps to the pedal if we have one, and Tps1 if not.
66
69
70 // this becomes AFR once we multiply by STOICH_RATIO
71 Lambda1,
72 Lambda2,
75
78
80
82
84
86
89
91
92 // Fast MAP is synchronous to crank angle - user selectable phase/window
93 MapFast,
94 // Slow MAP is asynchronous - not synced to anything, normal analog sampling
95 // MAP decoding happens only that often thus this is NOT raw MAP as flows from ADC
96 MapSlow,
97
99
100 EGT1,
101 EGT2,
102 EGT3,
103 EGT4,
104 EGT5,
105 EGT6,
106 EGT7,
107 EGT8,
108
109 Maf2, // Second bank MAF sensor
110
111 // todo: finish implementation?
112 Map2,
113 MapSlow2,
114 MapFast2,
115
116 // Pressure sensor after compressor, before intercooler
119
120 // Pressure sensor before the throttle, after any turbo/etc
122
124
131
132 // analog voltage inputs for Lua
141
142 LuaGauge1,
143 LuaGauge2,
144 LuaGauge3,
145 LuaGauge4,
146 LuaGauge5,
147 LuaGauge6,
148 LuaGauge7,
149 LuaGauge8,
150
152
157
159
164
165 // frequency sensors
166 AuxSpeed1,
167 AuxSpeed2,
168
169 // Let's always have all auxiliary sensors at the end - please add specific sensors above auxiliary
170
171 // Leave me at the end!
173};
@ FuelEthanolPercent
@ ThrottleInletPressure
@ AmbientTemperature
@ CompressorDischargePressure
@ AcceleratorPedalPrimary
@ CompressorDischargeTemperature
@ FuelPressureInjector
@ AcceleratorPedalSecondary
@ DriverThrottleIntent
@ DashOverrideBatteryVoltage
@ AcceleratorPedalUnfiltered
@ DashOverrideVehicleSpeed
@ BarometricPressure

Go to the source code of this file.