File Exchange

image thumbnail

gps_chksum

version 1.0.0.0 (1.37 KB) by Val Schmidt
A function to calculate the checksum for a NMEA/GPS string.

3 Downloads

Updated 25 Apr 2012

View License

NMEA v0183 is a "standard" commonly used by GPS receivers and other marine electronics gear to report things like time, position, velocity, number of satellites seen, radar contacts and a host of other details. The standard consists of ASCII text sentences whose fields are comma delimited and whose final field is an 8 bit checksum. Given a full NMEA string (beginning with the leading $ and including the checksum), gps_chksum.m calculates the terminating checksum allowing one to verify the string has been received as it was written.

gps_chksum('$GPGGA,181022,4308.1686,N,07056.3514,W,1,05,2.5,22.9,M,-32.5,M,,*4B')

ans =

4B

Cite As

Val Schmidt (2021). gps_chksum (https://www.mathworks.com/matlabcentral/fileexchange/36385-gps_chksum), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!