示例#1
0
 private static void gpshelper_ReciveGpsData(object sender, XeGps e)
 {
     CO_IA.GpsLib.Gps.Decoder_Gps_Data gpsdata = CreateGpsOrbit(e.lat, e.lon);
     foreach (var dataInvoker in dataInvokers)
     {
         dataInvoker.Dispose(ref gpsdata);
     }
 }
示例#2
0
 private static CO_IA.GpsLib.Gps.Decoder_Gps_Data CreateGpsOrbit(double longitude, double latitude)
 {
     CO_IA.GpsLib.Gps.Decoder_Gps_Data data = new CO_IA.GpsLib.Gps.Decoder_Gps_Data();
     data.Height              = 100;
     data.Latitude            = latitude;
     data.Longitude           = longitude;
     data.LongitudeHemisphere = 'E';
     data.LatitudeHemisphere  = 'N';
     data.LocationState       = 'A';
     data.Speed         = 100;
     data.UsingStartNum = 10;
     data.BTC_Time      = double.Parse(DateTime.Now.ToString("HHmmss.fff"));
     return(data);
 }