function data = ReadProductDataType(gps) % ReadProductDataType Read product id, version number and descriptive text global…
GPS+RTK 源代码
汇集 GPS+RTK 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
function [gps, pid, version, text, protocols] = OpenGPS(port) global pid_product_rqst % Initialize global consta…
function protocols = ReadProtocols(gps) % READPROTOCOLS Read the Protocol Capability Protocol data from the GPS % Return a struc…
function WritePacketHeader(gps, id, sz) global pid_dle_byte % Three byte header: (DLE, id, size) fwrite(gps, pid_dle_byte); …
function SendBeginPacket(gps, count) % SENDBEGINPACKET Send the standard begin command packet WritePacketHeader(gps, pid_recor…
function cksum = ReadPacketTerminator(gps) % ReadPacketTerminator Read the three byte sequence terminating a packet global pid_d…
function routes = ReadRoutes(gps) % READROUTES Read all the route data from the GPS global pid_command_data cmd_transfer_rte p…
function tracks = ReadTracks(gps) % ReadTracks Read all the track data from the GPS global pid_command_data cmd_transfer_trk p…
function [id, data] = ReadPacket(gps, type) % READPACKET Read a single packet from the device global pid_ack_byte pid_nak_byte…
function WritePacket(gps, id, data) dle = 16; etx = 3; % Three byte header: (DLE, id, size) fwrite(gps, dle)…