Skip to content

Struct CvChangeFilter

ClassList > CvChangeFilter

More...

Public Attributes

Type Name
bool changed
float prev_val

Public Functions

Type Name
bool Changed () const
CvChangeFilter ()
float Process (const float in)

Detailed Description

Naive hysteresis filter for printing CV input changes

Only update the value if the input has changed by enough to print.

Public Attributes Documentation

variable changed

bool CvChangeFilter::changed;

variable prev_val

float CvChangeFilter::prev_val;

Public Functions Documentation

function Changed

inline bool CvChangeFilter::Changed () const

returns true the value changed last time Process was called


function CvChangeFilter

inline CvChangeFilter::CvChangeFilter () 

simple constructor


function Process

inline float CvChangeFilter::Process (
    const float in
) 

compares the input to the last value output, and updates it if it exceeds a threshold of 0.1



The documentation for this class was generated from the following file external-docs/libDaisy/examples/devkits/Desktop-DevKit-UI-Template/src/main.cpp