nmea

所属分类:GPS编程
开发工具:Elixir
文件大小:0KB
下载次数:0
上传日期:2019-09-12 22:12:36
上 传 者sh-1993
说明:  NMEA兼容传感器的分析器
(Parser for NMEA compliant sensors)

文件列表:
.formatter.exs (97, 2023-08-08)
lib/ (0, 2023-08-08)
lib/nmea.ex (1154, 2023-08-08)
mix.exs (591, 2023-08-08)
mix.lock (987, 2023-08-08)
test/ (0, 2023-08-08)
test/nmea_test.exs (1121, 2023-08-08)
test/test_helper.exs (15, 2023-08-08)

# NMEA [NMEA (National Marine Electronics Association) 0183](https://en.wikipedia.org/wiki/NMEA_0183) is a standard for parsing sensor data for many marine electronics like echo sounders, sonars, anemometers, gyrocompasses, autopilots and GPS receivers. Example GPS data looks like this: ```bash cat /dev/ttyACM0 ``` ``` $GPGGA,092750.000,5321.6802,N,00630.3372,W,1,8,1.03,61.7,M,55.2,M,,*76 $GPGSA,A,3,10,07,05,02,29,04,08,13,,,,,1.72,1.03,1.38*0A $GPGSV,3,1,11,10,63,137,17,07,61,098,15,05,59,290,20,08,54,157,30*70 $GPGSV,3,2,11,02,39,223,19,13,28,070,17,26,23,252,,04,14,186,14*79 $GPGSV,3,3,11,29,09,301,24,16,09,020,,36,,,*76 $GPRMC,092750.000,A,5321.6802,N,00630.3372,W,0.02,31.66,280511,,,A*43 $GPGGA,092751.000,5321.6802,N,00630.3371,W,1,8,1.03,61.7,M,55.3,M,,*75 $GPGSA,A,3,10,07,05,02,29,04,08,13,,,,,1.72,1.03,1.38*0A $GPGSV,3,1,11,10,63,137,17,07,61,098,15,05,59,290,20,08,54,157,30*70 $GPGSV,3,2,11,02,39,223,16,13,28,070,17,26,23,252,,04,14,186,15*77 $GPGSV,3,3,11,29,09,301,24,16,09,020,,36,,,*76 $GPRMC,092751.000,A,5321.6802,N,00630.3371,W,0.06,31.66,280511,,,A*45 ``` Every line starts with a dollar sign. The next 2 characters is the "talker", followed by 3 characters for the "type" of record. It is followed by a CSV and then a "*" followed by a checksum. Tested with a [ublox series 6 GPS receiver](https://www.u-blox.com/en/product/neo-6-series). ## Installation If [available in Hex](https://hex.pm/docs/publish), the package can be installed by adding `nmea` to your list of dependencies in `mix.exs`: ```elixir def deps do [ {:nmea, "~> 0.1.0"} ] end ``` Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc) and published on [HexDocs](https://hexdocs.pm). Once published, the docs can be found at [https://hexdocs.pm/nmea](https://hexdocs.pm/nmea).

近期下载者

相关文件


收藏者