pub struct AlmData {Show 15 fields
pub total_number_of_messages: Option<u16>,
pub sentence_number: Option<u16>,
pub satellite_prn_number: Option<u8>,
pub gps_week_number: Option<u16>,
pub sv_health: Option<u8>,
pub eccentricity: Option<u16>,
pub almanac_reference_time: Option<u8>,
pub inclination_angle: Option<u16>,
pub rate_of_right_ascension: Option<u16>,
pub root_of_semi_major_axis: Option<u32>,
pub argument_of_perigee: Option<u32>,
pub longitude_of_ascension_node: Option<u32>,
pub mean_anomaly: Option<u32>,
pub f0_clock_parameter: Option<u16>,
pub f1_clock_parameter: Option<u16>,
}
Expand description
ALM - GPS Almanac Data
https://gpsd.gitlab.io/gpsd/NMEA.html#_alm_gps_almanac_data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| | | | | | | | | | | | | | | |
$--ALM,x.x,x.x,xx,x.x,hh,hhhh,hh,hhhh,hhhh,hhhhhh,hhhhhh,hhhhhh,hhhhhh,hhh,hhh*hh<CR><LF>
Field Number:
- Total number of messages
- Sentence Number
- Satellite PRN number (01 to 32)
- GPS Week Number (range 0 to 2^13 - 1), where:
- 0 is the week of the GPS Week Number epoch on January 6th 1980;
- 8191 is the week that precedes the next rollover on January 6th 2137; Note: the legacy representation started at the same epoch, but the number is 10-bit wide only, with a rollover every 19.7 years.
- Eccentricity
- Almanac Reference Time
- Inclination Angle
- Rate of Right Ascension
- Root of semi-major axis
- Argument of perigee
- Longitude of ascension node
- Mean anomaly
- F0 Clock Parameter
- F1 Clock Parameter
- Checksum
Fields 5 through 15 are dumped as raw hex.
Fields§
§total_number_of_messages: Option<u16>
§sentence_number: Option<u16>
§satellite_prn_number: Option<u8>
§gps_week_number: Option<u16>
This is the modern 13-bit representation of the GPS week number.
Use AlmData::get_10bit_gps_week_number()
to get the legacy 10-bit
representation.
sv_health: Option<u8>
§eccentricity: Option<u16>
§almanac_reference_time: Option<u8>
§inclination_angle: Option<u16>
§rate_of_right_ascension: Option<u16>
§root_of_semi_major_axis: Option<u32>
§argument_of_perigee: Option<u32>
§longitude_of_ascension_node: Option<u32>
§mean_anomaly: Option<u32>
§f0_clock_parameter: Option<u16>
§f1_clock_parameter: Option<u16>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AlmData
impl<'de> Deserialize<'de> for AlmData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<AlmData> for AlmData
impl PartialEq<AlmData> for AlmData
impl Copy for AlmData
impl Eq for AlmData
impl StructuralEq for AlmData
impl StructuralPartialEq for AlmData
Auto Trait Implementations§
impl RefUnwindSafe for AlmData
impl Send for AlmData
impl Sync for AlmData
impl Unpin for AlmData
impl UnwindSafe for AlmData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more