Current best parameters

This commit is contained in:
2019-11-16 13:45:06 +01:00
parent 9700f88449
commit fb663c260f
3 changed files with 41 additions and 15 deletions

View File

@@ -39,9 +39,9 @@ double ftmEval(SensorMode UseSensor, const Timestamp& currentTime, const Point3&
if (ftmDist > 0)
{
//double sigma = wifi.getFtmDistStd()*wifi.getFtmDistStd(); // 3.5; // TODO
double sigma = 3;
double sigma = 8;
if (false && ftmKalmanFilters != nullptr)
if (ftmKalmanFilters != nullptr)
{
Kalman& kalman = ftmKalmanFilters->at(mac);
ftmDist = kalman.predictAndUpdate(currentTime, ftmDist);
@@ -66,7 +66,7 @@ double ftmEval(SensorMode UseSensor, const Timestamp& currentTime, const Point3&
else
{
// RSSI
double sigma = 5;
double sigma = 8;
double x = Distribution::Normal<double>::getProbability(rssiDist, sigma, apDist);
result *= x;