pub struct ChannelSatInfo {
pub sat_id: SatelliteId,
pub freq_nr: u8,
pub rise_set: u8,
pub health_status: u16,
pub states: Vec<ChannelState>,
/* private fields */
}Expand description
Satellite tracking information
Fields§
§sat_id: SatelliteIdSatellite ID
freq_nr: u8Frequency number (for GLONASS, raw field value)
rise_set: u8Rise/set indicator
health_status: u16Health status
states: Vec<ChannelState>Channel states
Implementations§
Source§impl ChannelSatInfo
impl ChannelSatInfo
Sourcepub fn azimuth_deg(&self) -> f64
pub fn azimuth_deg(&self) -> f64
Get azimuth in degrees.
Returns 0.0 when the azimuth is unavailable. Use Self::azimuth_deg_opt
to distinguish unavailable from a real north azimuth.
Sourcepub fn azimuth_deg_opt(&self) -> Option<f64>
pub fn azimuth_deg_opt(&self) -> Option<f64>
Get azimuth in degrees, or None when unavailable.
Sourcepub fn azimuth_raw(&self) -> u16
pub fn azimuth_raw(&self) -> u16
Raw azimuth bits from the Azimuth/RiseSet field.
Sourcepub fn elevation_deg(&self) -> f64
pub fn elevation_deg(&self) -> f64
Get elevation in degrees.
Returns 0.0 when the elevation is unavailable. Use Self::elevation_deg_opt
to distinguish unavailable from a real horizon elevation.
Sourcepub fn elevation_deg_opt(&self) -> Option<f64>
pub fn elevation_deg_opt(&self) -> Option<f64>
Get elevation in degrees, or None when unavailable.
Sourcepub fn elevation_raw(&self) -> i8
pub fn elevation_raw(&self) -> i8
Raw elevation field from the SBF block.
Sourcepub fn is_setting(&self) -> bool
pub fn is_setting(&self) -> bool
Check if satellite is setting
Sourcepub fn is_rise_set_unknown(&self) -> bool
pub fn is_rise_set_unknown(&self) -> bool
Check if rise/set state is unknown
Trait Implementations§
Source§impl Clone for ChannelSatInfo
impl Clone for ChannelSatInfo
Source§fn clone(&self) -> ChannelSatInfo
fn clone(&self) -> ChannelSatInfo
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 moreAuto Trait Implementations§
impl Freeze for ChannelSatInfo
impl RefUnwindSafe for ChannelSatInfo
impl Send for ChannelSatInfo
impl Sync for ChannelSatInfo
impl Unpin for ChannelSatInfo
impl UnsafeUnpin for ChannelSatInfo
impl UnwindSafe for ChannelSatInfo
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