rusEFI
The most advanced open source ECU
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
*/
27
Map
,
28
Maf
,
29
30
AmbientTemperature
,
31
32
OilPressure
,
33
OilTemperature
,
34
35
FuelPressureLow
,
// in kPa
36
FuelPressureHigh
,
// in kPa
37
FuelPressureInjector
,
38
39
FuelTemperature
,
40
41
// This is the "resolved" position, potentially composited out of the following two
42
Tps1
,
// 10
43
// This is the first sensor
44
Tps1Primary
,
45
// This is the second sensor
46
Tps1Secondary
,
47
48
Tps2
,
49
Tps2Primary
,
50
Tps2Secondary
,
51
52
// Redundant and combined sensors for acc pedal
53
AcceleratorPedal
,
54
// pedal according to only first physical sensor
55
AcceleratorPedalPrimary
,
56
// pedal according to only second physical sensor
57
AcceleratorPedalSecondary
,
58
59
// This maps to the pedal if we have one, and Tps1 if not.
60
DriverThrottleIntent
,
61
62
AuxTemp1
,
// 20
63
AuxTemp2
,
64
65
Lambda1
,
66
Lambda2
,
67
68
WastegatePosition
,
69
IdlePosition
,
70
71
FuelEthanolPercent
,
72
73
BatteryVoltage
,
74
75
BarometricPressure
,
76
77
FuelLevel
,
78
79
VehicleSpeed
,
80
WheelSlipRatio
,
81
82
TurbochargerSpeed
,
83
84
// Fast MAP is synchronous to crank angle - user selectable phase/window
85
MapFast
,
86
// Slow MAP is asynchronous - not synced to anything, normal analog sampling
87
// MAP decoding happens only that often thus this is NOT raw MAP as flows from ADC
88
MapSlow
,
89
90
InputShaftSpeed
,
91
92
EGT1
,
93
EGT2
,
94
EGT3
,
95
EGT4
,
96
EGT5
,
97
EGT6
,
98
EGT7
,
99
EGT8
,
100
101
Maf2
,
// Second bank MAF sensor
102
103
Map2
,
104
MapSlow2
,
105
MapFast2
,
106
107
// Pressure sensor after compressor, before intercooler
108
CompressorDischargePressure
,
109
CompressorDischargeTemperature
,
110
111
// Pressure sensor before the throttle, after any turbo/etc
112
ThrottleInletPressure
,
113
114
DetectedGear
,
115
116
RangeInput1
,
117
RangeInput2
,
118
RangeInput3
,
119
RangeInput4
,
120
RangeInput5
,
121
RangeInput6
,
122
123
// analog voltage inputs for Lua
124
AuxAnalog1
,
125
AuxAnalog2
,
126
AuxAnalog3
,
127
AuxAnalog4
,
128
AuxAnalog5
,
129
AuxAnalog6
,
130
AuxAnalog7
,
131
AuxAnalog8
,
132
133
LuaGauge1
,
134
LuaGauge2
,
135
LuaGauge3
,
136
LuaGauge4
,
137
LuaGauge5
,
138
LuaGauge6
,
139
LuaGauge7
,
140
LuaGauge8
,
141
142
IgnKeyVoltage
,
143
144
DashOverrideRpm
,
145
DashOverrideVehicleSpeed
,
146
DashOverrideClt
,
147
DashOverrideBatteryVoltage
,
148
149
AuxLinear1
,
150
AuxLinear2
,
151
152
// frequency sensors
153
AuxSpeed1
,
154
AuxSpeed2
,
155
156
// Let's always have all auxiliary sensors at the end - please add specific sensors above auxiliary
157
158
// Leave me at the end!
159
PlaceholderLast
,
160
};
Gpio::Invalid
@ Invalid
ClearReason::OilPressure
@ OilPressure
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::AuxAnalog3
@ AuxAnalog3
SensorType::MapFast2
@ MapFast2
SensorType::Maf2
@ Maf2
SensorType::AmbientTemperature
@ AmbientTemperature
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::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::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::EGT6
@ EGT6
SensorType::Map2
@ Map2
SensorType::Lambda2
@ Lambda2
SensorType::Rpm
@ Rpm
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::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::EGT8
@ EGT8
Generated on Sat May 4 2024 00:06:37 for rusEFI by
1.9.1