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
45 lines
910 B
C++
45 lines
910 B
C++
#ifndef WIFISENSOR_H
|
|
#define WIFISENSOR_H
|
|
|
|
#include "../misc/fixc11.h"
|
|
#include <string>
|
|
#include <sstream>
|
|
#include "Sensor.h"
|
|
#include <Indoor/sensors/radio/WiFiMeasurements.h>
|
|
|
|
//struct WiFiSensorDataEntry {
|
|
// std::string bssid;
|
|
// float rssi;
|
|
// WiFiSensorDataEntry(const std::string& bssid, const float rssi) : bssid(bssid), rssi(rssi) {;}
|
|
// std::string asString() const {
|
|
// std::stringstream ss;
|
|
// ss << bssid << '\t' << (int)rssi;
|
|
// return ss.str();
|
|
// }
|
|
//};
|
|
|
|
|
|
//struct WiFiSensorData {
|
|
// std::vector<WiFiSensorDataEntry> entries;
|
|
// std::string asString() const {
|
|
// std::stringstream ss;
|
|
// for(const WiFiSensorDataEntry& e : entries) {ss << e.asString() << '\n';}
|
|
// return ss.str();
|
|
// }
|
|
//};
|
|
|
|
|
|
/** interface for all wifi sensors */
|
|
class WiFiSensor : public Sensor<WiFiMeasurements> {
|
|
|
|
protected:
|
|
|
|
/** hidden ctor. use SensorFactory */
|
|
WiFiSensor() {
|
|
|
|
}
|
|
|
|
};
|
|
|
|
#endif // WIFISENSOR_H
|