pub struct SatelliteId {
pub constellation: Constellation,
pub prn: u8,
}Expand description
Satellite identifier (constellation + PRN)
Fields§
§constellation: Constellation§prn: u8Implementations§
Source§impl SatelliteId
impl SatelliteId
Sourcepub fn new(constellation: Constellation, prn: u8) -> Self
pub fn new(constellation: Constellation, prn: u8) -> Self
Create a new satellite ID
Sourcepub fn from_svid(svid: u8) -> Option<Self>
pub fn from_svid(svid: u8) -> Option<Self>
Decode SVID into constellation + PRN per SBF spec.
SVID ranges per SBF Reference Guide:
- 1-37: GPS
- 38-61: GLONASS (slot number = SVID - 37)
- 62: GLONASS (slot number 0)
- 63-68: GLONASS (slot number = SVID - 38)
- 71-106: Galileo (PRN = SVID - 70)
- 107-119: L-Band (MSS) satellites
- 120-140: SBAS (PRN = SVID - 100)
- 141-180: BeiDou (PRN = SVID - 140)
- 181-190: QZSS (PRN = SVID - 180)
- 191-197: NavIC/IRNSS (PRN = SVID - 190)
- 198-215: SBAS (PRN = SVID - 157)
- 216-222: NavIC/IRNSS (PRN = SVID - 208)
- 223-245: BeiDou (PRN = SVID - 182)
Trait Implementations§
Source§impl Clone for SatelliteId
impl Clone for SatelliteId
Source§fn clone(&self) -> SatelliteId
fn clone(&self) -> SatelliteId
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SatelliteId
impl Debug for SatelliteId
Source§impl Display for SatelliteId
impl Display for SatelliteId
Source§impl Hash for SatelliteId
impl Hash for SatelliteId
Source§impl PartialEq for SatelliteId
impl PartialEq for SatelliteId
impl Eq for SatelliteId
impl StructuralPartialEq for SatelliteId
Auto Trait Implementations§
impl Freeze for SatelliteId
impl RefUnwindSafe for SatelliteId
impl Send for SatelliteId
impl Sync for SatelliteId
impl Unpin for SatelliteId
impl UnsafeUnpin for SatelliteId
impl UnwindSafe for SatelliteId
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