a lot!!! of changes
added main menu added debug display many debug widgets for plotting live data worked on android live sensors added offline-data sensor feeding some dummy data sensors worked on the map display added ui debug for grid-points, particles and weights added a cool dude to display the estimation added real filtering based on the Indoor components c++11 fixes for android compilation online and offline filtering support new resampling technique for testing map loading via dialog
This commit is contained in:
@@ -54,6 +54,12 @@ private:
|
||||
aps.push_back(DummyAP("00:00:00:00:00:01", Point2(0, 0)));
|
||||
aps.push_back(DummyAP("00:00:00:00:00:02", Point2(20, 0)));
|
||||
aps.push_back(DummyAP("00:00:00:00:00:03", Point2(10, 20)));
|
||||
aps.push_back(DummyAP("00:00:00:00:00:04", Point2(10, 30)));
|
||||
aps.push_back(DummyAP("00:00:00:00:00:05", Point2(10, 40)));
|
||||
aps.push_back(DummyAP("00:00:00:00:00:06", Point2(10, 50)));
|
||||
aps.push_back(DummyAP("00:00:00:00:00:07", Point2(10, 60)));
|
||||
aps.push_back(DummyAP("00:00:00:00:00:08", Point2(10, 70)));
|
||||
aps.push_back(DummyAP("00:00:00:00:00:09", Point2(10, 80)));
|
||||
|
||||
float deg = 0;
|
||||
|
||||
@@ -73,11 +79,11 @@ private:
|
||||
const float y = cy + std::cos(deg) * rad;
|
||||
|
||||
// construct scan data
|
||||
WiFiSensorData scan;
|
||||
WiFiMeasurements scan;
|
||||
for (DummyAP& ap : aps) {
|
||||
const float dist = ap.pos.getDistance(Point2(x, y));
|
||||
const float rssi = LogDistanceModel::distanceToRssi(-40, 1.5, dist);
|
||||
scan.entries.push_back(WiFiSensorDataEntry(ap.mac, rssi));
|
||||
scan.entries.push_back(WiFiMeasurement(AccessPoint(ap.mac), rssi));
|
||||
}
|
||||
|
||||
// call
|
||||
|
||||
Reference in New Issue
Block a user