gps_chksum
Version 2.0.0.1 (1,46 KB) von
Val Schmidt
A function to calculate the checksum for a NMEA/GPS string.
Typical output from GPS receives comes in the form of ASCII strings conforming to the NMEA 0183 standard. An example string might look like this:
$GPGGA,000003.071,7900.56904,N,16607.52019,W,1,09,0.8,4.64,M,,,,*26
There are many types of strings, but each one starts with a $ and end with a * followed by a checksum of the characters between the $ and *.
Given a string of chacters containing a leading $ and a trailing *, gps_chksum calculates the checksum at the end, allowing one to create one's own valid string, or check the validity of any string received.
Version 2.0 Fixed to allow calculation on arbitrary strings that don't already have characters in the checksum field. The input string must have a leading $ and a trailing *. The checksum is calculated on the characters between the $ and *, per the NMEA standard.
Zitieren als
Val Schmidt (2024). gps_chksum (https://www.mathworks.com/matlabcentral/fileexchange/36385-gps_chksum), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Erstellt mit
R2011b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- Industries > Automotive >
- Robotics and Autonomous Systems > Automated Driving Toolbox >
- Automotive > Automated Driving Toolbox >
Mehr zu Automotive finden Sie in Help Center und MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
2.0.0.1 | Modified the description. |
||
2.0.0.0 | Fixed to allow calculation on arbitrary strings (@ZacharyTaylor comment) |
||
1.0.0.0 |