Exemple #1
0
        public DotSpatial.Positioning.Speed Speed5Sec()
        {
            GpsThread t = ((App)Application.Current).gpsThread;

            t.NotifyOfExternalRequest();
            return(t.Speed5sec);
        }
Exemple #2
0
        public ushort Satellites()
        {
            GpsThread t = ((App)Application.Current).gpsThread;

            t.NotifyOfExternalRequest();
            return(t.Satellites);
        }
Exemple #3
0
        public DotSpatial.Positioning.Distance Elevation()
        {
            GpsThread t = ((App)Application.Current).gpsThread;

            t.NotifyOfExternalRequest();
            return(t.Elevation);
        }
Exemple #4
0
        public DotSpatial.Positioning.Position GpsPosition()
        {
            GpsThread t = ((App)Application.Current).gpsThread;

            t.NotifyOfExternalRequest();
            return(t.GpsPos);
        }
Exemple #5
0
        public DateTime GpsTime()
        {
            GpsThread t = ((App)Application.Current).gpsThread;

            t.NotifyOfExternalRequest();
            return(t.GpsTime);
        }
Exemple #6
0
        public bool IsConnected()
        {
            GpsThread t = ((App)Application.Current).gpsThread;

            t.NotifyOfExternalRequest();
            return(t.IsConnected);
        }
Exemple #7
0
        public LatestGpsData GetLatest()
        {
            GpsThread     t = ((App)Application.Current).gpsThread;
            LatestGpsData s;

            s.position   = new DotSpatial.Positioning.Position3D(t.Elevation, t.GpsPos);
            s.speed5sec  = t.Speed5sec;
            s.satellites = t.Satellites;
            s.time       = t.GpsTime;
            t.NotifyOfExternalRequest();
            return(s);
        }