lab11 / polypoint

Indoor localization based on the DecaWave DW1000.
Apache License 2.0
137 stars 52 forks source link

Percentile calculation in pp_oneway_tag is wrong #1

Closed ppannuto closed 9 years ago

ppannuto commented 9 years ago

https://github.com/lab11/polypoint/blob/master/contiki/apps/pp_oneway_tag/pp_oneway_tag.c#L191

This picks the 10th percentile of 27 measurements unconditionally. It should instead find the 10th percentile of the number of valid measurements.