Struct sbp::messages::ssr::satellite_apc::SatelliteAPC
source · [−]pub struct SatelliteAPC {
pub sid: GnssSignal,
pub sat_info: u8,
pub svn: u16,
pub pco: [i16; 3],
pub pcv: [i8; 21],
}
Expand description
Antenna phase center correction
Contains phase center offset and elevation variation corrections for one signal on a satellite.
Fields
sid: GnssSignal
GNSS signal identifier (16 bit)
sat_info: u8
Additional satellite information
svn: u16
Satellite Code, as defined by IGS. Typically the space vehicle number.
pco: [i16; 3]
Mean phase center offset, X Y and Z axes. See IGS ANTEX file format description for coordinate system definition.
pcv: [i8; 21]
Elevation dependent phase center variations. First element is 0 degrees separation from the Z axis, subsequent elements represent elevation variations in 1 degree increments.
Implementations
sourceimpl SatelliteAPC
impl SatelliteAPC
sourcepub fn satellite_type(&self) -> Result<SatelliteType, u8>
pub fn satellite_type(&self) -> Result<SatelliteType, u8>
Gets the SatelliteType stored in the sat_info
bitfield.
Returns Ok
if the bitrange contains a known SatelliteType
variant.
Otherwise the value of the bitrange is returned as an Err(u8)
. This may be because of a malformed message,
or because new variants of SatelliteType
were added.
sourcepub fn set_satellite_type(&mut self, satellite_type: SatelliteType)
pub fn set_satellite_type(&mut self, satellite_type: SatelliteType)
Set the bitrange corresponding to the SatelliteType of the sat_info
bitfield.
Trait Implementations
sourceimpl Clone for SatelliteAPC
impl Clone for SatelliteAPC
sourcefn clone(&self) -> SatelliteAPC
fn clone(&self) -> SatelliteAPC
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for SatelliteAPC
impl Send for SatelliteAPC
impl Sync for SatelliteAPC
impl Unpin for SatelliteAPC
impl UnwindSafe for SatelliteAPC
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more