rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
fuel_level_func.h
Go to the documentation of this file.
1//
2// Created by kifir on 12/19/24.
3//
4
5#pragma once
6
8
10public:
13 SensorResult convert(float inputValue);
14private:
15 float getFuelLevelAlpha() const;
16 float filterFuelValue(float value);
17 void updateFilteredValue(float value);
18
19 static constexpr float MIN_FUEL_LEVEL_UPDATE_PERIOD_SEC =
21
22 std::optional<float> m_filteredValue;
24};
float filterFuelValue(float value)
void updateFilteredValue(float value)
SensorResult convert(float inputValue)
std::optional< float > m_filteredValue
static constexpr float MIN_FUEL_LEVEL_UPDATE_PERIOD_SEC
float getFuelLevelAlpha() const
expected< float > SensorResult
Definition sensor.h:46