首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C# > C #解析NMEA GPS信息

C #解析NMEA GPS信息

  • 资源大小:9.77 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 信息 解析

资 源 简 介

An incomplete, but usable and easily extensible NMEA GPS output message parser in C#. At the moment it parses most of: GGA, RMC, GLL, GSA, GSV. I use no generics here, so you can use it also with older .NET versions before 2.0. Setup parsing Create a parser instance, connect to NewMessage event, set up the source System.IO.Stream and start the parser. The parser has its own thread to read bytes from the source Stream. gps.parser.Nmea parser = new gps.parser.Nmea();parser.NewMessage += new gps.parser.Nmea.NewMessageEventHandler(HandleNewMessage);parser.Source = System.IO.File.OpenRead(file); // you may want to bufferparser.Start(); Process the events You are notified for each full parsed message, and can access data from it as shown: private void HandleNewMessage(gps.parser.NmeaMsg msg){ gps.parser.Field f = null; switch(msg.id) { case gps.parser.NmeaMessage.MsgType.GGA: ... f = (gp

文 件 列 表

parser
Error.cs
Field.cs
GGA.cs
GLL.cs
GSA.cs
GSV.cs
MessageHandler.cs
MinimalNmeaPositionNotifier.cs
Nmea.cs
NmeaMsg.cs
RMC.cs
Utils.cs
m.bat
gps2coords.cs

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP