Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 61 lines (50 sloc) 1.781 kB
42aa391 Removed deprecated code (append_to_xml); \n Added read_from_xml(); \n…
Clovis Scotti authored
1 /*
2 * Copyright (c) 2011 Nokia Corporation
3 *
4 * This file is part of the Push Snowboarding Project, More info at:
5 * www.pushsnowboading.com
6 *
7 * Author: Clovis Scotti <scotti@ieee.org>
8 *
9 * This program is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation, either version 3 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 *
26 */
27
28 #ifndef NPUSHACCTICK_H
29 #define NPUSHACCTICK_H
30
31 #include "npushlogtick.h"
32 #include <qmath.h>
33 #include <QAccelerometer>
34 #include <QtXml>
35 #include <QTime>
36
37 QTM_USE_NAMESPACE
38 class NPushAccTick : public NPushLogTick
39 {
40 public:
41 NPushAccTick() {}
42 NPushAccTick(QAccelerometerReading * reading);
43 NPushAccTick(QAccelerometerReading * reading, quint64 a_msecsToEpoch);
44
45 virtual ~NPushAccTick();
46
47 virtual void read_from_xml( QXmlStreamReader& xml);
48 virtual void dump_to_xml(QXmlStreamWriter& xml) const;
49
50 virtual QString get_pretty_print() const;
51
52 QAccelerometerReading tick;
53 qreal pAccAbsMag;
54
55 quint64 msecsToEpoch;
56
57 static const qreal freefall_threshold = 7.0;
58 };
59
60 #endif // NPUSHACCTICK_H
Something went wrong with that request. Please try again.