function for data filter
Budget: €8 – €30 EUR
I use an ultrasonic sensor for distance measurement and I need a function to filter the data received from this sensor. I repeat: I need only a function.
Input of the function is the data array received from the sensor. Is 1D array with uint32_t data.
Output of the function must be the distance (only one value) as median value.
Data can have spikes and not always is homogenious and that's whay the function must eliminate spikes before calculate the median.
Function will be provided with all #include files required as functional example. Environment to use the function: Arduino with ESP32 microcontroller.
Function will be tested with different input data arrays (adding spikes values and variation of the main data) .
Please, don't bid if you didn't implement these kind of filters before.
Input of the function is the data array received from the sensor. Is 1D array with uint32_t data.
Output of the function must be the distance (only one value) as median value.
Data can have spikes and not always is homogenious and that's whay the function must eliminate spikes before calculate the median.
Function will be provided with all #include files required as functional example. Environment to use the function: Arduino with ESP32 microcontroller.
Function will be tested with different input data arrays (adding spikes values and variation of the main data) .
Please, don't bid if you didn't implement these kind of filters before.