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

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

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

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

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

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

            t.NotifyOfExternalRequest();
            return(t.IsConnected);
        }
コード例 #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);
        }