一、GPS数据格式介绍
GPS(全球定位系统)数据格式常见的是NMEA 0183格式,NMEA 0183格式是一种用于导航设备间传输数据的标准格式,定义了一套规范,使得不同厂商的设备可以通过串行通信接口...3,1,10,10,49,184,42,12,16,039,,14,54,341,,18,22,165,23*7B
$GPGSV,3,2,10,22,11,318,,25,51,055,,26,24,205,,29,13,110,*7C...三、C语言解析数据代码
3.1 解析每个字段数据
以下是使用C语言解析NMEA 0183数据字段并将其打印到串口:
#include
#include
//...3,1,10,10,49,184,42,12,16,039,,14,54,341,,18,22,165,23*7B",
"$GPGSV,3,2,10,22,11,318,,25,51,055,,26,24,205,,29,13,110,*7C"...3,1,10,10,49,184,42,12,16,039,,14,54,341,,18,22,165,23*7B",
"$GPGSV,3,2,10,22,11,318,,25,51,055,,26,24,205,,29,13,110,*7C"