rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
controllers
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
7
bool
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
}
Hysteresis::m_state
bool m_state
Definition
hysteresis.h:27
Hysteresis::test
bool test(float value, float rising, float falling)
Definition
hysteresis.h:31
hysteresis.h
Generated on Sat Sep 27 2025 00:10:06 for rusEFI by
1.9.8