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
56 lines
829 B
C++
56 lines
829 B
C++
#ifndef BAROMETERSENSORANDROID_H
|
|
#define BAROMETERSENSORANDROID_H
|
|
|
|
#ifdef ANDROID
|
|
|
|
#include <sstream>
|
|
|
|
#include "../BarometerSensor.h"
|
|
|
|
#include <QtSensors/QPressureSensor>
|
|
|
|
#include "../AccelerometerSensor.h"
|
|
|
|
class BarometerSensorAndroid : public BarometerSensor {
|
|
|
|
private:
|
|
|
|
QPressureSensor baro;
|
|
|
|
/** hidden ctor. use singleton */
|
|
BarometerSensorAndroid() {
|
|
;
|
|
}
|
|
|
|
public:
|
|
|
|
/** singleton access */
|
|
static BarometerSensorAndroid& get() {
|
|
static BarometerSensorAndroid baro;
|
|
return baro;
|
|
}
|
|
|
|
void start() override {
|
|
|
|
auto onSensorData = [&] () {
|
|
BarometerData data(baro.reading()->pressure());
|
|
informListeners(data);
|
|
};
|
|
|
|
baro.connect(&baro, &QPressureSensor::readingChanged, onSensorData);
|
|
baro.start();
|
|
|
|
}
|
|
|
|
void stop() override {
|
|
throw "TODO";
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
#endif // BAROMETERSENSORANDROID_H
|