rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
controllers
sensors
sensor_type.h
Go to the documentation of this file.
1
/**
2
* @file sensor_type.h
3
* @brief Enumeration of sensors supported by the ECU.
4
*
5
* @date September 12, 2019
6
* @author Matthew Kennedy, (c) 2019
7
*/
8
9
#pragma once
10
11
#define VBAT_FALLBACK_VALUE 12
12
13
/**
14
**************************************
15
* SEE sensor.h ON HOW TO ADD NEW SENSOR TYPES
16
**************************************
17
*/
18
enum class
SensorType
:
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
33
AmbientTemperature
,
34
35
OilPressure
,
36
OilTemperature
,
37
38
FuelPressureLow
,
// in kPa
39
FuelPressureHigh
,
// in kPa
40
// ProxySensor for one of the above
41
FuelPressureInjector
,
42
43
FuelTemperature
,
44
45
// This is the "resolved" position, potentially composited out of the following two
46
Tps1
,
// 10
47
// This is the first sensor
48
Tps1Primary
,
49
// This is the second sensor
50
Tps1Secondary
,
51
52
Tps2
,
53
Tps2Primary
,
54
Tps2Secondary
,
55
56
// Redundant and combined sensors for acc pedal
57
AcceleratorPedalUnfiltered
,
58
AcceleratorPedal
,
59
// pedal according to only first physical sensor
60
AcceleratorPedalPrimary
,
61
// pedal according to only second physical sensor
62
AcceleratorPedalSecondary
,
63
64
// This maps to the pedal if we have one, and Tps1 if not.
65
DriverThrottleIntent
,
66
67
AuxTemp1
,
68
AuxTemp2
,
69
70
// this becomes AFR once we multiply by STOICH_RATIO
71
Lambda1
,
72
Lambda2
,
73
SmoothedLambda1
,
74
SmoothedLambda2
,
75
76
WastegatePosition
,
77
IdlePosition
,
78
79
FuelEthanolPercent
,
80
81
BatteryVoltage
,
82
83
BarometricPressure
,
84
85
FuelLevel
,
86
87
VehicleSpeed
,
88
WheelSlipRatio
,
89
90
TurbochargerSpeed
,
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
98
InputShaftSpeed
,
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
117
CompressorDischargePressure
,
118
CompressorDischargeTemperature
,
119
120
// Pressure sensor before the throttle, after any turbo/etc
121
ThrottleInletPressure
,
122
123
DetectedGear
,
124
125
RangeInput1
,
126
RangeInput2
,
127
RangeInput3
,
128
RangeInput4
,
129
RangeInput5
,
130
RangeInput6
,
131
132
// analog voltage inputs for Lua
133
AuxAnalog1
,
134
AuxAnalog2
,
135
AuxAnalog3
,
136
AuxAnalog4
,
137
AuxAnalog5
,
138
AuxAnalog6
,
139
AuxAnalog7
,
140
AuxAnalog8
,
141
142
LuaGauge1
,
143
LuaGauge2
,
144
LuaGauge3
,
145
LuaGauge4
,
146
LuaGauge5
,
147
LuaGauge6
,
148
LuaGauge7
,
149
LuaGauge8
,
150
151
IgnKeyVoltage
,
152
153
DashOverrideRpm
,
154
DashOverrideVehicleSpeed
,
155
DashOverrideClt
,
156
DashOverrideBatteryVoltage
,
157
158
AcPressure
,
159
160
AuxLinear1
,
161
AuxLinear2
,
162
AuxLinear3
,
163
AuxLinear4
,
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!
172
PlaceholderLast
,
173
};
SensorType
SensorType
Definition
sensor_type.h:18
SensorType::AuxAnalog8
@ AuxAnalog8
SensorType::MapSlow
@ MapSlow
SensorType::FuelEthanolPercent
@ FuelEthanolPercent
SensorType::ThrottleInletPressure
@ ThrottleInletPressure
SensorType::FuelPressureHigh
@ FuelPressureHigh
SensorType::BatteryVoltage
@ BatteryVoltage
SensorType::SmoothedLambda1
@ SmoothedLambda1
SensorType::AuxAnalog3
@ AuxAnalog3
SensorType::MapFast2
@ MapFast2
SensorType::Maf2
@ Maf2
SensorType::AmbientTemperature
@ AmbientTemperature
SensorType::SmoothedLambda2
@ SmoothedLambda2
SensorType::FuelLevel
@ FuelLevel
SensorType::AcceleratorPedal
@ AcceleratorPedal
SensorType::FuelPressureLow
@ FuelPressureLow
SensorType::EGT4
@ EGT4
SensorType::DashOverrideRpm
@ DashOverrideRpm
SensorType::FuelTemperature
@ FuelTemperature
SensorType::Tps1Secondary
@ Tps1Secondary
SensorType::CompressorDischargePressure
@ CompressorDischargePressure
SensorType::LuaGauge6
@ LuaGauge6
SensorType::Iat
@ Iat
SensorType::LuaGauge8
@ LuaGauge8
SensorType::AuxSpeed2
@ AuxSpeed2
SensorType::AcceleratorPedalPrimary
@ AcceleratorPedalPrimary
SensorType::AuxAnalog2
@ AuxAnalog2
SensorType::Map
@ Map
SensorType::IgnKeyVoltage
@ IgnKeyVoltage
SensorType::MapFast
@ MapFast
SensorType::AuxAnalog1
@ AuxAnalog1
SensorType::Invalid
@ Invalid
SensorType::CompressorDischargeTemperature
@ CompressorDischargeTemperature
SensorType::EGT3
@ EGT3
SensorType::AuxTemp1
@ AuxTemp1
SensorType::PlaceholderLast
@ PlaceholderLast
SensorType::RangeInput5
@ RangeInput5
SensorType::IdlePosition
@ IdlePosition
SensorType::Lambda1
@ Lambda1
SensorType::LuaGauge5
@ LuaGauge5
SensorType::OilTemperature
@ OilTemperature
SensorType::FuelPressureInjector
@ FuelPressureInjector
SensorType::InputShaftSpeed
@ InputShaftSpeed
SensorType::Tps2Secondary
@ Tps2Secondary
SensorType::AuxSpeed1
@ AuxSpeed1
SensorType::RangeInput2
@ RangeInput2
SensorType::AuxAnalog5
@ AuxAnalog5
SensorType::RangeInput6
@ RangeInput6
SensorType::LuaGauge4
@ LuaGauge4
SensorType::EGT2
@ EGT2
SensorType::OilPressure
@ OilPressure
SensorType::WastegatePosition
@ WastegatePosition
SensorType::RangeInput4
@ RangeInput4
SensorType::AcceleratorPedalSecondary
@ AcceleratorPedalSecondary
SensorType::VehicleSpeed
@ VehicleSpeed
SensorType::Clt
@ Clt
SensorType::Tps2Primary
@ Tps2Primary
SensorType::RangeInput3
@ RangeInput3
SensorType::RangeInput1
@ RangeInput1
SensorType::LuaGauge2
@ LuaGauge2
SensorType::AuxAnalog7
@ AuxAnalog7
SensorType::DriverThrottleIntent
@ DriverThrottleIntent
SensorType::Maf
@ Maf
SensorType::DashOverrideBatteryVoltage
@ DashOverrideBatteryVoltage
SensorType::AuxLinear1
@ AuxLinear1
SensorType::AuxAnalog6
@ AuxAnalog6
SensorType::DetectedGear
@ DetectedGear
SensorType::AuxLinear3
@ AuxLinear3
SensorType::EGT6
@ EGT6
SensorType::Map2
@ Map2
SensorType::Lambda2
@ Lambda2
SensorType::Rpm
@ Rpm
SensorType::AcceleratorPedalUnfiltered
@ AcceleratorPedalUnfiltered
SensorType::AuxLinear2
@ AuxLinear2
SensorType::EGT7
@ EGT7
SensorType::DashOverrideClt
@ DashOverrideClt
SensorType::DashOverrideVehicleSpeed
@ DashOverrideVehicleSpeed
SensorType::EGT5
@ EGT5
SensorType::LuaGauge1
@ LuaGauge1
SensorType::MapSlow2
@ MapSlow2
SensorType::TurbochargerSpeed
@ TurbochargerSpeed
SensorType::AcPressure
@ AcPressure
SensorType::Tps2
@ Tps2
SensorType::BarometricPressure
@ BarometricPressure
SensorType::Tps1
@ Tps1
SensorType::WheelSlipRatio
@ WheelSlipRatio
SensorType::LuaGauge7
@ LuaGauge7
SensorType::EGT1
@ EGT1
SensorType::Tps1Primary
@ Tps1Primary
SensorType::AuxTemp2
@ AuxTemp2
SensorType::AuxAnalog4
@ AuxAnalog4
SensorType::LuaGauge3
@ LuaGauge3
SensorType::AuxLinear4
@ AuxLinear4
SensorType::EGT8
@ EGT8
Generated on Sat Sep 27 2025 00:10:06 for rusEFI by
1.9.8