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!!!
29 Maemo5Location *location;
33 int satellitesInUse; //Number of satellites in use.
34 int satellitesInView;//Number of satellites in view.
35 int signalStrength; //Average signal strength of satellites which are in use.
36 double latitude; //Latitude.
37 double longitude; //Longitude.
38 double time; //Timestamp of the update in seconds.
39 double ept; //Time accuracy in seconds.
40 double eph; //Horizontal position accuracy in cm.
41 double altitude; //Fix altitude in meters.
42 double epv; //Altitude accuracy in meters.
43 double track; //Direction of motion in degrees(0-359).
44 double epd; //Track accuracy in degrees.
45 double speed; //Current speed in km/h.
46 double eps; //Speed accuracy in km/h.
47 double climb; //Current rate of climb in m/s.
48 double epc; //Climb accuracy in m/s.
49 QString routeStartTime;
50 QString routeStopTime;
53 QString latitudePrevious;
54 QString longitudePrevious;
58 double gpsDataArray[4];
65 void locationUpdated();
67 void gpsDisconnected();
71 void gpsTimerTimeout();