Difference between revisions of "Component: Running Average 16-bit (Calculation)"
From Flowcode Help
Jump to navigationJump to search|  (Created page with "{| style="width:50%"  |-  | width="20%" style="color:gray;" | Author  | Matrix TSL  |-  | width="20%" style="color:gray;" | Version  | 1.0  |-  | width="20%" style="color:gray...") | 
| (No difference) | 
Latest revision as of 09:31, 19 July 2024
| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | Calculation | 
Contents
Running Average 16-bit component
Allows a value from a sensor to be averaged out filtering out high frequencies and removing noise. Running average means we have a variable that we maintain that on each pass will be 12.5% new value + 87.5% old value for example at a ratio of 8.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Filter
|   | Filter | 
| Performs the filtering function, passing in the latest sampled value and outputting the latest filtered value. | |
|  - INT | Value | 
|  - INT | Return | 
SetFilterRatio
SetFilterValue
|   | SetFilterValue | 
| Sets the absolute value of the filter value i.e. for setting the initial state. | |
|  - INT | Val | 
|  - VOID | Return | 
Property reference
|   | Properties | 
Component Source Code
Please click here to download the component source project: FC_Comp_Source_RunningAverage.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_RunningAverage.fcfx

