sensorfw: sensors/contextplugin/stabilitybin.h Source File

sensorfw

stabilitybin.h
Go to the documentation of this file.
1
27 #ifndef STABILITY_BIN
28 #define STABILITY_BIN
29
30 #include "bin.h"
31 #include "bufferreader.h"
32 #include "abstractchain.h"
33 #include "datatypes/orientationdata.h"
34
35 #include "normalizerfilter.h"
36 #include "cutterfilter.h"
37 #include "avgvarfilter.h"
38 #include "stabilityfilter.h"
39
40 #include <ContextProvider>
41
42 #include <QPair>
43
44 class DeviceAdaptor;
45
46 class StabilityBin : public QObject, Bin
47 {
48 Q_OBJECT
49
50 public:
51 StabilityBin(ContextProvider::Service& service);
52 ~StabilityBin();
53
54 private Q_SLOTS:
55 void startRun();
56 void stopRun();
57
58 private:
59 ContextProvider::Property isStableProperty;
60 ContextProvider::Property isShakyProperty;
61 ContextProvider::Group group;
62
63 BufferReader<AccelerationData> accelerometerReader;
64 DeviceAdaptor* accelerometerAdaptor;
65
66 NormalizerFilter normalizerFilter;
67 CutterFilter cutterFilter;
68 AvgVarFilter avgVarFilter;
69 StabilityFilter stabilityFilter;
70
71 int sessionId;
72
73 static const int STABILITY_THRESHOLD;
74 static const int UNSTABILITY_THRESHOLD;
75 static const float STABILITY_HYSTERESIS;
76 };
77
78
79
80 #endif
avgvarfilter.h
Average variance filter.
AvgVarFilter
Definition: avgvarfilter.h:35
BufferReader
Definition: accelerometersensor.h:38
CutterFilter
Definition: cutterfilter.h:31
NormalizerFilter
Definition: normalizerfilter.h:32
StabilityBin
Definition: stabilitybin.h:47
StabilityBin::StabilityBin
StabilityBin(ContextProvider::Service &service)
StabilityBin::~StabilityBin
~StabilityBin()
StabilityFilter
Filter for providing the Orientation.IsStable context property.
Definition: stabilityfilter.h:51
cutterfilter.h
CutterFilter.
normalizerfilter.h
NormalizerFilter.
orientationdata.h
Datatypes for different filters.
stabilityfilter.h
StabilityFilter.