rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
MaxLimitWithHysteresis< RisingChecker, FallingChecker > Class Template Reference

#include <max_limit_with_hysteresis.h>

Collaboration diagram for MaxLimitWithHysteresis< RisingChecker, FallingChecker >:
Collaboration graph
[legend]

Public Member Functions

bool checkIfLimitIsExceeded (const float value, const float maxLimit, const float hysteresis)
 

Private Attributes

Hysteresis m_hysteresis
 

Detailed Description

template<typename RisingChecker = StrictChecker, typename FallingChecker = StrictChecker>
class MaxLimitWithHysteresis< RisingChecker, FallingChecker >

Definition at line 10 of file max_limit_with_hysteresis.h.

Member Function Documentation

◆ checkIfLimitIsExceeded()

template<typename RisingChecker , typename FallingChecker >
bool MaxLimitWithHysteresis< RisingChecker, FallingChecker >::checkIfLimitIsExceeded ( const float  value,
const float  maxLimit,
const float  hysteresis 
)

Definition at line 18 of file max_limit_with_hysteresis.h.

22 {
23 return m_hysteresis.test<RisingChecker, FallingChecker>(value, maxLimit, maxLimit - hysteresis);
24}
bool test(float value, float rising, float falling)
Definition hysteresis.h:31

Referenced by LimpManager::updateState().

Here is the caller graph for this function:

Field Documentation

◆ m_hysteresis

template<typename RisingChecker = StrictChecker, typename FallingChecker = StrictChecker>
Hysteresis MaxLimitWithHysteresis< RisingChecker, FallingChecker >::m_hysteresis
private

Definition at line 14 of file max_limit_with_hysteresis.h.


The documentation for this class was generated from the following file: