Wiki source code of Filtering sensor readings

Last modified by Андрей Калиновский on 2023/04/25 14:39

Hide last authors
Андрей Калиновский 5.1 1 Software filtering of sensor values ​​is intended for smoothing and filtering sensor readings that do not have hardware filtering. Filtering should be used when it is necessary to remove erroneous values, much more or less than other values.
Андрей Калиновский 1.1 2
Андрей Калиновский 5.1 3 The median filtering algorithm is used to filter sensor readings.
Андрей Калиновский 1.1 4
Андрей Калиновский 5.1 5 Filtering of sensor readings is available for simple sensors of the following types:
Андрей Калиновский 1.1 6
7 * (((
Андрей Калиновский 5.1 8 Onboard voltage
Андрей Калиновский 1.1 9 )))
10 * (((
Андрей Калиновский 5.1 11 Engine speed
Андрей Калиновский 1.1 12 )))
13 * (((
Андрей Калиновский 5.1 14 Engine temperature
Андрей Калиновский 1.1 15 )))
16 * (((
Андрей Калиновский 5.1 17 trailer temperature
Андрей Калиновский 1.1 18 )))
19 * (((
Андрей Калиновский 5.1 20 Fuel level
Андрей Калиновский 1.1 21 )))
22 * (((
Андрей Калиновский 5.1 23 Fuel level in the tank
Андрей Калиновский 1.1 24 )))
25 * (((
Андрей Калиновский 5.1 26 grain level
Андрей Калиновский 1.1 27 )))
28 * (((
Андрей Калиновский 5.1 29 Arbitrary
Андрей Калиновский 1.1 30 )))
31
Андрей Калиновский 5.1 32 If one of the listed sensors is selected, the filtering settings will be displayed in the sensor settings window:
Андрей Калиновский 1.1 33
Андрей Калиновский 5.1 34 [[image:image-20230425143905-1.png]]
Андрей Калиновский 1.1 35
36 * (((
Андрей Калиновский 5.1 37 Use median filtering
Андрей Калиновский 1.1 38 )))
39
Андрей Калиновский 5.1 40 Enables the sensor's median filtering algorithm.
Андрей Калиновский 1.1 41
42 * (((
Андрей Калиновский 5.1 43 Degree of filtration
Андрей Калиновский 1.1 44 )))
45
Андрей Калиновский 5.1 46 Sets the degree of filtering, values ​​from 0 to 255 are available for input. The degree of filtering means the number of messages that will be used for filtering. The value entered in the filtration degree field is multiplied by 5, the value obtained after multiplication will be the number of messages to filter. If 0 is entered, then 3 messages will be used for filtering. The larger the value, the more the data will be “smoothed out”, therefore it will differ significantly from the original data.
Андрей Калиновский 1.1 47
Андрей Калиновский 5.1 48 **If filtering is enabled for a sensor, then the filtered dataset will be used for event calculations, display of calculation results in tooltips, reports, including Report Builder, and user graphs.**
Андрей Калиновский 1.1 49
Андрей Калиновский 5.1 50 If tare is used for sensor values, then filtering will be applied after taring the “raw” values.
Андрей Калиновский 1.1 51
Андрей Калиновский 5.1 52 If the virtual sensor includes a simple sensor with filtering enabled, then the filtered data will also be used to calculate the readings of the virtual sensor.
Андрей Калиновский 1.1 53
Андрей Калиновский 5.1 54 Filtering example:
Андрей Калиновский 1.1 55
Андрей Калиновский 5.1 56 Fuel level graph  **without filter option enabled**
Андрей Калиновский 1.1 57
Андрей Калиновский 5.1 58 [[image:image-20230425143909-2.png]]
Андрей Калиновский 1.1 59
Андрей Калиновский 5.1 60 Fuel level graph  **with filter option enabled**
Андрей Калиновский 1.1 61
Андрей Калиновский 5.1 62 [[image:image-20230425143912-3.png]]

Menu

GLONASSSoft wiki - 2023 г