pub struct AprsPosition {
pub to: Callsign,
pub timestamp: Option<Timestamp>,
pub messaging_supported: bool,
pub latitude: Latitude,
pub longitude: Longitude,
pub precision: Precision,
pub symbol_table: char,
pub symbol_code: char,
pub comment: Vec<u8>,
pub cst: AprsCst,
}Fields§
§to: Callsign§timestamp: Option<Timestamp>§messaging_supported: bool§latitude: LatitudeLatitudes aren’t specified precisely in APRS and have ambiguity built in. This value stores the center, but you can also call AprsPosition::latitude_bounding() to get the entire range that the actual latitude could be in.
longitude: LongitudeLongitudes aren’t specified precisely in APRS and have ambiguity built in. This value stores the center, but you can also call AprsPosition::longitude_bounding() to get the entire range that the actual longitude could be in.
precision: Precision§symbol_table: char§symbol_code: char§comment: Vec<u8>§cst: AprsCstImplementations§
Source§impl AprsPosition
impl AprsPosition
Sourcepub fn latitude_bounding(&self) -> RangeInclusive<f64>
pub fn latitude_bounding(&self) -> RangeInclusive<f64>
Latitudes in APRS aren’t perfectly precise - they have a configurable level of ambiguity. This is stored in the precision field on the AprsPosition struct. This method returns a range of what the actual latitude value might be.
Sourcepub fn longitude_bounding(&self) -> RangeInclusive<f64>
pub fn longitude_bounding(&self) -> RangeInclusive<f64>
Longitudes in APRS aren’t perfectly precise - they have a configurable level of ambiguity. This is stored in the precision field on the AprsPosition struct. This method returns a range of what the actual longitude value might be.
pub fn decode(b: &[u8], to: Callsign) -> Result<Self, DecodeError>
pub fn encode<W: Write>(&self, buf: &mut W) -> Result<(), EncodeError>
pub fn encode_uncompressed<W: Write>( &self, buf: &mut W, ) -> Result<(), EncodeError>
pub fn encode_compressed<W: Write>( &self, buf: &mut W, extra: Option<(AprsCompressedCs, AprsCompressionType)>, ) -> Result<(), EncodeError>
Trait Implementations§
Source§impl Clone for AprsPosition
impl Clone for AprsPosition
Source§fn clone(&self) -> AprsPosition
fn clone(&self) -> AprsPosition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more