rusEFI
The most advanced open source ECU
|
#include <redundant_sensor.h>
Public Member Functions | |
RedundantSensor (SensorType outputType, SensorType firstSensor, SensorType secondSensor) | |
void | configure (float maxDifference, bool ignoreSecondSensor) |
SensorResult | get () const override |
bool | isRedundant () const override |
void | showInfo (const char *sensorName) const override |
![]() | |
bool | Register () |
const char * | getSensorName () const |
virtual bool | hasSensor () const |
virtual float | getRaw () const |
void | unregister () |
SensorType | type () const |
Private Attributes | |
const SensorType | m_first |
const SensorType | m_second |
float | m_maxDifference = 0 |
bool | m_ignoreSecond = false |
Additional Inherited Members | |
![]() | |
static void | showAllSensorInfo () |
static void | showInfo (SensorType type) |
static void | resetRegistry () |
static const Sensor * | getSensorOfType (SensorType type) |
static SensorResult | get (SensorType type) |
static float | getOrZero (SensorType type) |
static float | getRaw (SensorType type) |
static bool | isRedundant (SensorType type) |
static bool | hasSensor (SensorType type) |
static void | setMockValue (SensorType type, float value, bool mockRedundant=false) |
static void | setInvalidMockValue (SensorType type) |
static void | resetMockValue (SensorType type) |
static void | resetAllMocks () |
static void | inhibitTimeouts (bool inhibit) |
static const char * | getSensorName (SensorType type) |
![]() | |
Sensor (SensorType type) | |
![]() | |
static bool | s_inhibitSensorTimeouts = false |
Definition at line 5 of file redundant_sensor.h.
RedundantSensor::RedundantSensor | ( | SensorType | outputType, |
SensorType | firstSensor, | ||
SensorType | secondSensor | ||
) |
Definition at line 5 of file redundant_sensor.cpp.
Definition at line 12 of file redundant_sensor.cpp.
|
overridevirtual |
Implements Sensor.
Definition at line 17 of file redundant_sensor.cpp.
|
inlineoverridevirtual |
Reimplemented from Sensor.
Definition at line 18 of file redundant_sensor.h.
|
overridevirtual |
Implements Sensor.
Definition at line 50 of file sensor_info_printing.cpp.
|
private |
Definition at line 27 of file redundant_sensor.h.
Referenced by get(), and showInfo().
|
private |
Definition at line 34 of file redundant_sensor.h.
Referenced by configure(), get(), and isRedundant().
|
private |
Definition at line 31 of file redundant_sensor.h.
Referenced by configure(), and get().
|
private |
Definition at line 28 of file redundant_sensor.h.
Referenced by get(), and showInfo().