4 * @author Toni Jussila <toni.jussila@fudeco.com>
5 * @copyright (c) 2010 Speed Freak team
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 #include <maemo5location.h>
15 #include <QTextStream>
18 class GPSData : public QObject
22 GPSData(Maemo5Location *maemo5location);
24 void startRouteRecording(QString time);
25 void stopRouteRecording(QString time);
26 int roundCounter; //testing, move private!!!
27 int getRoundCounter();
30 Maemo5Location *location;
34 int satellitesInUse; //Number of satellites in use.
35 int satellitesInView;//Number of satellites in view.
36 int signalStrength; //Average signal strength of satellites which are in use.
37 double latitude; //Latitude.
38 double longitude; //Longitude.
39 double time; //Timestamp of the update in seconds.
40 double ept; //Time accuracy in seconds.
41 double eph; //Horizontal position accuracy in cm.
42 double altitude; //Fix altitude in meters.
43 double epv; //Altitude accuracy in meters.
44 double track; //Direction of motion in degrees(0-359).
45 double epd; //Track accuracy in degrees.
46 double speed; //Current speed in km/h.
47 double eps; //Speed accuracy in km/h.
48 double climb; //Current rate of climb in m/s.
49 double epc; //Climb accuracy in m/s.
50 QString routeStartTime;
51 QString routeStopTime;
54 QString latitudePrevious;
55 QString longitudePrevious;
59 double gpsDataArray[4];
66 void locationUpdated();
68 void gpsDisconnected();
72 void gpsTimerTimeout();