rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
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 */
18enum 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
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};
SensorType
Definition sensor_type.h:18
@ FuelEthanolPercent
@ ThrottleInletPressure
@ AmbientTemperature
@ CompressorDischargePressure
@ AcceleratorPedalPrimary
@ CompressorDischargeTemperature
@ FuelPressureInjector
@ AcceleratorPedalSecondary
@ DriverThrottleIntent
@ DashOverrideBatteryVoltage
@ AcceleratorPedalUnfiltered
@ DashOverrideVehicleSpeed
@ BarometricPressure