fixed two bugs in ActivityButterPressure:

1) when barometer produces false measurements, we needed some kind of upper boundary
2) coding error static.. while initializing this object over multiple test iterations isnt the best idea
This commit is contained in:
toni
2017-11-06 18:04:55 +01:00
parent 284c6b11a6
commit 3f8d21e146
4 changed files with 11 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ public:
Assert::isTrue(age.ms() >= 0, "found a negative wifi measurement age. this does not make sense");
Assert::isTrue(age.ms() <= 60000, "found a 60 second old wifi measurement. maybe there is a coding error?");
Assert::isBetween(scanRSSI, -100.0f, -30.0f, "scan-rssi out of range");
Assert::isBetween(scanRSSI, -100.0f, -20.0f, "scan-rssi out of range");
//Assert::isBetween(modelRSSI, -160.0f, -10.0f, "model-rssi out of range");
// sigma grows with measurement age