Struct ublox::CfgNav5Builder

source ·
pub struct CfgNav5Builder {
Show 19 fields pub mask: CfgNav5Params, pub dyn_model: CfgNav5DynModel, pub fix_mode: CfgNav5FixMode, pub fixed_alt: f64, pub fixed_alt_var: f64, pub min_elev_degrees: i8, pub dr_limit: u8, pub pdop: f32, pub tdop: f32, pub pacc: u16, pub tacc: u16, pub static_hold_thresh: f32, pub dgps_time_out: u8, pub cno_thresh_num_svs: u8, pub cno_thresh: u8, pub reserved1: [u8; 2], pub static_hold_max_dist: u16, pub utc_standard: CfgNav5UtcStandard, pub reserved2: [u8; 5],
}
Expand description

Navigation Engine Settings Struct that is used to construct packets, see the crate-level documentation for more information

Fields§

§mask: CfgNav5Params

Only the masked parameters will be applied

§dyn_model: CfgNav5DynModel
§fix_mode: CfgNav5FixMode
§fixed_alt: f64

Fixed altitude (mean sea level) for 2D fixmode (m)

§fixed_alt_var: f64

Fixed altitude variance for 2D mode (m^2)

§min_elev_degrees: i8

Minimum Elevation for a GNSS satellite to be used in NAV (deg)

§dr_limit: u8

Reserved

§pdop: f32

Position DOP Mask to use

§tdop: f32

Time DOP Mask to use

§pacc: u16

Position Accuracy Mask (m)

§tacc: u16

Time Accuracy Mask according to manual unit is “m”, but this looks like typo

§static_hold_thresh: f32

Static hold threshold

§dgps_time_out: u8

DGNSS timeout (seconds)

§cno_thresh_num_svs: u8

Number of satellites required to have C/N0 above cno_thresh for a fix to be attempted

§cno_thresh: u8

C/N0 threshold for deciding whether toattempt a fix (dBHz)

§reserved1: [u8; 2]
§static_hold_max_dist: u16

Static hold distance threshold (beforequitting static hold)

§utc_standard: CfgNav5UtcStandard

UTC standard to be used

§reserved2: [u8; 5]

Implementations§

source§

impl CfgNav5Builder

source

pub const PACKET_LEN: usize = 44usize

source

pub fn into_packet_bytes(self) -> [u8; 44]

Trait Implementations§

source§

impl Default for CfgNav5Builder

source§

fn default() -> CfgNav5Builder

Returns the “default value” for a type. Read more
source§

impl From<CfgNav5Builder> for [u8; 44]

source§

fn from(x: CfgNav5Builder) -> Self

Converts to this type from the input type.
source§

impl UbxPacketCreator for CfgNav5Builder

source§

fn create_packet<T: MemWriter>( self, out: &mut T ) -> Result<(), MemWriterError<T::Error>>

Create packet and store bytes sequence to somewhere using out

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.