private void OnLocationChanged(LocationChangedEventArgs locationChangedEventArgs)
 {
     NmeaLog = string.Format("Lat: {1}{0}Long: {2}{0}Alt: {3}{0}Fix: {4}{0}Heading: {5}{0}Speed: {6}{0}Time: {7}{0}",
                             Environment.NewLine,
                             _gps.CurrentLocation.Latitude,
                             _gps.CurrentLocation.Longitude,
                             _gps.CurrentLocation.Altitude,
                             _gps.CurentFixType,
                             _gps.CurrentHeading,
                             _gps.CurrentSpeed.ToString(SpeedUnit.MilesPerHour, 2),
                             _gps.CurrentTime);
 }
Example #2
0
 private void RaiseLocationChanged()
 {
     if (CurentFixType < MinimumFixForNotification) {
         return;
     }
     var handler = LocationChanged;
     if (handler != null) {
         var args = new LocationChangedEventArgs(CurrentLocation, CurrentHeading);
         handler(args);
     }
 }