Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Ultrasonic Data Mean of Medians Approach #8

Open
okyang opened this issue Apr 11, 2021 · 2 comments
Open

Ultrasonic Data Mean of Medians Approach #8

okyang opened this issue Apr 11, 2021 · 2 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@okyang
Copy link
Contributor

okyang commented Apr 11, 2021

To ensure reliability of fullness data we want to try implementing this approach.

  1. collect 9 fullness data points
  2. sort the data points
  3. Take the middle 5 values and take the average
  4. Return that average as the fullness data

Changing this script: https://github.com/zotbins/waste_watcher/blob/main/v1/smartbin_sensor_module_v1_demo_version/smartbin_sensor_module_v1_demo_version.ino

@okyang okyang added the good first issue Good for newcomers label Apr 11, 2021
@okyang
Copy link
Contributor Author

okyang commented Apr 11, 2021

@DevPopat, are you interested in this?

@patrickanguyen
Copy link

For the sorting, highly recommend using a iterative algorithm like insertion sort instead of a recursive one to prevent stack overflow problems

@DevPopat DevPopat self-assigned this Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants