コード例 #1
0
ファイル: GPSHandler.cs プロジェクト: PlumpMath/UAV
        /// <summary>
        /// Private method for parsing the GPGLL NMEA sentence
        /// </summary>
        /// <param name="strGLL">GPGLL sentence</param>
        private void ParseGLL(string strGLL)
        {
            GPGLL = new NMEA.GPGLL(strGLL);
            GPSEventArgs e = new GPSEventArgs();

            e.TypeOfEvent = GPSEventType.GPGLL;
            e.Sentence    = strGLL;
            _NewGPSFix(this, e);
        }
コード例 #2
0
ファイル: GPSHandler.cs プロジェクト: PlumpMath/UAV
 /// <summary>
 /// Disposes the GpsHandler and if nessesary calls Stop()
 /// </summary>
 public void Dispose()
 {
     if (!disposed)
     {
         Stop();
         GpsPort.Dispose();
         this.GPGGA = null;
         this.GPGLL = null;
         this.GPGSA = null;
         this.GPRMC = null;
         this.PGRME = null;
         GpsPort    = null;
         //this.GPGSV = null;
         disposed = true;
     }
     GC.SuppressFinalize(this);
 }
コード例 #3
0
ファイル: GPSHandler.cs プロジェクト: kevincwq/UAV
 /// <summary>
 /// Private method for parsing the GPGLL NMEA sentence
 /// </summary>
 /// <param name="strGLL">GPGLL sentence</param>
 private void ParseGLL(string strGLL)
 {
     GPGLL = new NMEA.GPGLL(strGLL);
     GPSEventArgs e = new GPSEventArgs();
     e.TypeOfEvent = GPSEventType.GPGLL;
     e.Sentence = strGLL;
     _NewGPSFix(this, e);
 }
コード例 #4
0
ファイル: GPSHandler.cs プロジェクト: kevincwq/UAV
 /// <summary>
 /// Disposes the GpsHandler and if nessesary calls Stop()
 /// </summary>
 public void Dispose()
 {
     if (!disposed)
     {
         Stop();
         GpsPort.Dispose();
         this.GPGGA = null;
         this.GPGLL = null;
         this.GPGSA = null;
         this.GPRMC = null;
         this.PGRME = null;
         GpsPort = null;
         //this.GPGSV = null;
         disposed = true;
     }
     GC.SuppressFinalize(this);
 }