sensorfw: chains/accelerometerchain/accelerometerchain.h Source File

sensorfw

accelerometerchain.h
Go to the documentation of this file.
1
27 #ifndef ACCELEROMETERCHAIN_H
28 #define ACCELEROMETERCHAIN_H
29
30 #include "abstractsensor.h"
31 #include "abstractchain.h"
32 #include "coordinatealignfilter.h"
33 #include "deviceadaptor.h"
34
35 class Bin;
36 template <class TYPE> class BufferReader;
37 class FilterBase;
38
48 class AccelerometerChain : public AbstractChain
49 {
50 Q_OBJECT;
51
52 public:
57 static AbstractChain* factoryMethod(const QString& id)
58 {
59 AccelerometerChain* sc = new AccelerometerChain(id);
60 return sc;
61 }
62
63 public Q_SLOTS:
64 bool start();
65 bool stop();
66
67 protected:
68 AccelerometerChain(const QString& id);
69 ~AccelerometerChain();
70
71 private:
72
73 bool setMatrixFromString(const QString& str);
74
75 double aconv_[3][3];
76 Bin* filterBin_;
77
78 DeviceAdaptor* accelerometerAdaptor_;
79 BufferReader<AccelerationData>* accelerometerReader_;
80 FilterBase* accCoordinateAlignFilter_;
81 RingBuffer<AccelerationData>* outputBuffer_;
82 };
83
84 #endif // ACCELEROMETERCHAIN_H
AccelerometerChain
Accelerometerchain providies raw accelerometer coordinates aligned to Nokia Standard Coordinate syste...
Definition: accelerometerchain.h:49
AccelerometerChain::stop
bool stop()
AccelerometerChain::~AccelerometerChain
~AccelerometerChain()
AccelerometerChain::start
bool start()
AccelerometerChain::AccelerometerChain
AccelerometerChain(const QString &id)
AccelerometerChain::factoryMethod
static AbstractChain * factoryMethod(const QString &id)
Factory method for AccelerometerChain.
Definition: accelerometerchain.h:57
BufferReader
Definition: accelerometersensor.h:38
coordinatealignfilter.h
CoordinateAlignFilter.