added measurement grouping for beacons
had to change the parameter boundaries of the wifi optimizer to be able to use it for bluetooth... this should be refactored to something more generic.. some minor changes in ble
This commit is contained in:
@@ -7,12 +7,12 @@
|
||||
#include <unordered_map>
|
||||
|
||||
/**
|
||||
* denotes a wifi fingerprint:
|
||||
* known position and 1-n measurements [wifi-scan on all channels] conducted at this position
|
||||
* denotes a beacon fingerprint:
|
||||
* known position and 1-n measurements [ble-advertisment-scan on all channels] conducted at this position
|
||||
*
|
||||
* if more than one measurement is conducted, each AP is contained more than once!
|
||||
*/
|
||||
struct WiFiFingerprint {
|
||||
struct BeaconFingerprint {
|
||||
|
||||
|
||||
/** real-world-position that was measured */
|
||||
@@ -22,13 +22,13 @@ struct WiFiFingerprint {
|
||||
BeaconMeasurements measurements;
|
||||
|
||||
/** ctor */
|
||||
WiFiFingerprint() {;}
|
||||
BeaconFingerprint() {;}
|
||||
|
||||
/** ctor */
|
||||
WiFiFingerprint(const Point3 pos_m) : pos_m(pos_m) {;}
|
||||
BeaconFingerprint(const Point3 pos_m) : pos_m(pos_m) {;}
|
||||
|
||||
/** ctor */
|
||||
WiFiFingerprint(const Point3 pos_m, const BeaconMeasurements& measurements) : pos_m(pos_m), measurements(measurements) {;}
|
||||
BeaconFingerprint(const Point3 pos_m, const BeaconMeasurements& measurements) : pos_m(pos_m), measurements(measurements) {;}
|
||||
|
||||
|
||||
/** as each AP might be contained more than once (scanned more than once), group them by MAC and use the average RSSI */
|
||||
|
||||
Reference in New Issue
Block a user