Struct CvChangeFilter¶
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¶
variable prev_val¶
Public Functions Documentation¶
function Changed¶
returns true the value changed last time Process was called
function CvChangeFilter¶
simple constructor
function Process¶
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