今天给大家推荐一个纯C语言编写,轻量级的GPS NMEA 0183协议解析库:minmea
github地址:https://github.com/kosma/minmea
一、特点
1、C99标准编写
2、无动态内存分配语句
3、核心代码中无浮点数运算
4、支持固定和浮点数值
5、核心代码由一个C和一个h文件组成
6、在linux,osx,windows和嵌入式ARM GCC上测试通过
7、易于扩展支持其他的格式
8、代码通过了test组件测试和静态分析
二、支持的格式
RMC
GGA
GSA
GLL
GST
GSV
VTG
ZDA
三、英文版特点
Features
- Written in ISO C99.
- No dynamic memory allocation.
- No floating point usage in the core library.
- Supports both fixed and floating point values.
- One source file and one header - can't get any simpler.
- Tested under Linux, OS X, Windows and embedded ARM GCC.
- Easily extendable to support new sentences.
- Complete with a test suite and static analysis.
Supported sentences
RMC
(Recommended Minimum: position, velocity, time)GGA
(Fix Data)GSA
(DOP and active satellites)GLL
(Geographic Position: Latitude/Longitude)GST
(Pseudorange Noise Statistics)GSV
(Satellites in view)VTG
(Track made good and Ground speed)ZDA
(Time & Date - UTC, day, month, year and local time zone)
其他特点请移步github学习,这里不再介绍
注:nmealib库也不错,有兴趣的可以去研究下。
2020-03-05@北京 今天突然能在多点上买一次性口罩了,有点意外啊