File tree Expand file tree Collapse file tree 3 files changed +36
-1
lines changed
Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025 Swift Navigation Inc.
2+ // Contact: Swift Navigation <dev@swiftnav.com>
3+ //
4+ // This source is subject to the license found in the file 'LICENSE' which must
5+ // be be distributed together with this source. All other rights reserved.
6+ //
7+ // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
8+ // EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
9+ // WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
10+
111fn u8_to_nibbles ( byte : u8 ) -> ( u8 , u8 ) {
212 // The high nibble is obtained by shifting the byte 4 bits to the right.
313 // This discards the lower 4 bits and moves the upper 4 bits into the lower 4 bit positions.
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025 Swift Navigation Inc.
2+ // Contact: Swift Navigation <dev@swiftnav.com>
3+ //
4+ // This source is subject to the license found in the file 'LICENSE' which must
5+ // be be distributed together with this source. All other rights reserved.
6+ //
7+ // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
8+ // EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
9+ // WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
10+
111use std:: {
212 fmt:: { self } ,
313 time:: Duration ,
@@ -51,7 +61,8 @@ impl fmt::Display for GPSQuality {
5161 }
5262}
5363
54- /// Geographic coordinates including altitude, GPS solution quality, DGPS usage information.
64+ /// Global Positioning System Fix Data including time, position and fix related data for a GNSS
65+ /// receiver
5566#[ derive( Debug , PartialEq , Clone , Builder ) ]
5667pub struct GGA {
5768 /// Time of fix in UTC.
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025 Swift Navigation Inc.
2+ // Contact: Swift Navigation <dev@swiftnav.com>
3+ //
4+ // This source is subject to the license found in the file 'LICENSE' which must
5+ // be be distributed together with this source. All other rights reserved.
6+ //
7+ // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
8+ // EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
9+ // WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
10+
11+ //! This module contains National Marine Electronics Association (NMEA) related structures and
12+ //! formatting utilities. Notably, it contains (or eventually will contain) structures related to
13+ //! NMEA sentences and parsing/serialization of those sentences.
14+
115mod checksum;
216mod gga;
317
You can’t perform that action at this time.
0 commit comments