38template <
typename FirstPressureData,
typename SecondPressureData>
42 checkIfProduces<Sensor<FirstPressureData>,
PressureData>::value,
43 "First template argument must be a sensor that produces pressure "
46 checkIfProduces<Sensor<SecondPressureData>,
PressureData>::value,
47 "Second template argument must be a sensor that produces pressure "
52 Sensor<FirstPressureData>* first_pressure_sensor,
53 Sensor<SecondPressureData>* second_pressure_sensor)
54 : first_pressure_sensor(first_pressure_sensor),
55 second_pressure_sensor(second_pressure_sensor)
59 bool init()
override {
return true; }
76 Sensor<FirstPressureData>* first_pressure_sensor;
77 Sensor<SecondPressureData>* second_pressure_sensor;
Base sensor class with has to be extended by any sensor driver.
virtual Data getLastSample()
Class used to simulate a differential pressure sensor in software.
PressureData sampleImpl() override
bool selfTest() override
Check if the sensor is working.
SoftwareDifferentialPressureSensor(Sensor< FirstPressureData > *first_pressure_sensor, Sensor< SecondPressureData > *second_pressure_sensor)
bool init() override
Initialize the sensor.
long long getOldTick()
Get the current time in milliseconds.
This file includes all the types the logdecoder script will decode.