sensorfw
orientationfilter.h
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** Copyright (C) 2013 Jolla Ltd
4
5
This file is part of Sensord.
6
7
Sensord is free software; you can redistribute it and/or modify
8
it under the terms of the GNU Lesser General Public License
9
version 2.1 as published by the Free Software Foundation.
10
11
Sensord is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public
17
License along with Sensord. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef ORIENTATIONFILTER_H
21
#define ORIENTATIONFILTER_H
22
23
#include <QObject>
24
#include "ringbuffer.h"
25
#include "
orientationdata.h
"
26
#include "filter.h"
27
28
class
OrientationFilter
:
public
QObject,
public
FilterBase
29
{
30
Q_OBJECT
31
32
public
:
33
34
static
FilterBase*
factoryMethod
() {
35
return
new
OrientationFilter
;
36
}
37
38
protected
:
39
40
OrientationFilter
();
41
42
private
:
43
Source<CompassData> magSource;
44
45
Sink<OrientationFilter, CompassData> orientDataSink;
46
void
orientDataAvailable(
unsigned
,
const
CompassData
*);
47
48
CompassData
compassData;
//north angle
49
50
};
51
52
#endif
CompassData
Datatype for compass measurements.
Definition:
orientationdata.h:112
OrientationFilter
Definition:
orientationfilter.h:29
OrientationFilter::factoryMethod
static FilterBase * factoryMethod()
Definition:
orientationfilter.h:34
OrientationFilter::OrientationFilter
OrientationFilter()
orientationdata.h
Datatypes for different filters.
chains
compasschain
orientationfilter.h
Generated by
1.9.4