private void OnGgaEvent(object sender, Gps.GPSGGA gga) { if (gga.Quality == Gps.GPSGGA.FixQuality.noFix || gga.Satellites == null) { return; } Sattelites = gga.Satellites.Value; TrackCoordinates.Add(new Position { Latitude = gga.Latitude.GetValueOrDefault(), Longitude = gga.Longitude.GetValueOrDefault() }); }
private void OnGGAEvent(object sender, Gps.GPSGGA GGA) { if (GGA.Quality != Gps.GPSGGA.FixQuality.noFix) { AltitudeTextBox.Text = GGA.Altitude.ToString(); SatellitesTextBox.Text = GGA.Satellites.ToString(); AltUnitsTextBox.Text = GGA.AltUnits; } else { AltitudeTextBox.Text = ""; SatellitesTextBox.Text = ""; AltUnitsTextBox.Text = ""; } }