removed some hacks

This commit is contained in:
toni
2017-04-19 14:59:04 +02:00
parent 99f282180e
commit 8e295e25af
3 changed files with 4 additions and 9 deletions

View File

@@ -68,8 +68,8 @@ private:
const float stdDev = std::sqrt(avg2 - avg*avg);
// avg rssi score
const float minRSSI = -90;
const float maxRSSI = -65;
const float minRSSI = -90;
const float maxRSSI = -75;
float score1 = (avg-minRSSI) / (maxRSSI-minRSSI); // min = 0; max = 1
if (score1 > 1) {score1 = 1;}
if (score1 < 0) {score1 = 0;}