Moved eval into own cpp to allow shorter compile times

This commit is contained in:
2019-10-08 13:31:59 +02:00
parent 17140f2dbe
commit 704b64bfcf
4 changed files with 101 additions and 58 deletions

23
code/Eval.h Normal file
View File

@@ -0,0 +1,23 @@
#pragma once
#include <unordered_map>
#include <vector>
#include <Indoor/geo/Point3.h>
#include "FtmKalman.h"
#include <Indoor/sensors/radio/WiFiMeasurements.h>
#include <Indoor/sensors/radio/model/LogDistanceModel.h>
enum class SensorMode
{
FTM,
RSSI
};
double ftmEval(SensorMode UseSensor,
const Timestamp& currentTime,
const Point3& particlePos,
const std::vector<WiFiMeasurement>& measurements,
std::shared_ptr<std::unordered_map<MACAddress, Kalman>> ftmKalmanFilters);