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
54 lines
1.5 KiB
C++
54 lines
1.5 KiB
C++
#ifndef SENSORDATAWIDGET_H
|
|
#define SENSORDATAWIDGET_H
|
|
|
|
#include "../misc/fixc11.h"
|
|
#include "plot/PlottWidget.h"
|
|
|
|
#include <QWidget>
|
|
|
|
#include "../sensors/AccelerometerSensor.h"
|
|
#include "../sensors/GyroscopeSensor.h"
|
|
#include "../sensors/BarometerSensor.h"
|
|
#include "../sensors/StepSensor.h"
|
|
#include "../sensors/TurnSensor.h"
|
|
#include "../sensors/WiFiSensor.h"
|
|
|
|
class PlotWidget;
|
|
|
|
/** debug display for sensor data */
|
|
class SensorDataWidget :
|
|
public QWidget,
|
|
public SensorListener<AccelerometerData>,
|
|
public SensorListener<GyroscopeData>,
|
|
public SensorListener<BarometerData>,
|
|
public SensorListener<StepData>,
|
|
public SensorListener<TurnData>,
|
|
public SensorListener<WiFiMeasurements> {
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
SensorDataWidget(QWidget* parent);
|
|
|
|
void onSensorData(Sensor<AccelerometerData>* sensor, const Timestamp ts, const AccelerometerData& data) override;
|
|
void onSensorData(Sensor<GyroscopeData>* sensor, const Timestamp ts, const GyroscopeData& data) override;
|
|
void onSensorData(Sensor<BarometerData>* sensor, const Timestamp ts, const BarometerData& data) override;
|
|
void onSensorData(Sensor<StepData>* sensor, const Timestamp ts, const StepData& data) override;
|
|
void onSensorData(Sensor<TurnData>* sensor, const Timestamp ts, const TurnData& data) override;
|
|
void onSensorData(Sensor<WiFiMeasurements>* sensor, const Timestamp ts, const WiFiMeasurements& data) override;
|
|
|
|
private:
|
|
|
|
PlotWidget* plotGyro;
|
|
PlotWidget* plotAcc;
|
|
PlotWidget* plotBaro;
|
|
QWidget* plotTurn;
|
|
QWidget* plotWiFi;
|
|
|
|
|
|
};
|
|
|
|
#endif // SENSORDATAWIDGET_H
|