rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
functional_sensor_impl.h
Go to the documentation of this file.
1//
2// Created by kifir on 12/20/24.
3//
4
5#pragma once
6
8
9template<class ConverterType>
11public:
13
14 void postRawValue(float inputValue, efitick_t timestamp) override;
15
16 void setFunction(ConverterType& func);
17
18 ConverterType* getFunction() const;
19
20 float getRaw() const override final;
21private:
22 // Conversion function for this sensor
23 ConverterType* m_function = nullptr;
24
25 float m_rawValue = 0;
26};
27
ConverterType * getFunction() const
void setFunction(ConverterType &func)
float getRaw() const override final
void postRawValue(float inputValue, efitick_t timestamp) override
SensorType type() const
Definition sensor.h:162
efitick_t efidur_t
SensorType
Definition sensor_type.h:18