rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
hysteresis.cpp
Go to the documentation of this file.
1//
2// Created by kifir on 8/23/24.
3//
4
5#include "hysteresis.h"
6
7bool Hysteresis::test(const bool risingCondition, const bool fallingCondition) {
8 if (risingCondition) {
9 m_state = true;
10 } else if (fallingCondition) {
11 m_state = false;
12 }
13
14 return m_state;
15}
bool m_state
Definition hysteresis.h:27
bool test(float value, float rising, float falling)
Definition hysteresis.h:31