Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为我的应用程序使用 GPS 模块。我只想要 RMC 数据。那么我应该在我的代码中做什么才能只获取这些数据,即应该禁用所有其他格式,如 GGA、GSA、VTG。
请帮忙。谢谢
您不能禁用其他消息,也没有理由这样做。一些 GPS 单元支持启用/禁用消息的命令,但它不是标准的。
只需switch在代码中的句子识别字段中使用一个语句,并case为GPRMC.
switch
case
GPRMC
并在使用语法高亮时从内容中标记