pub struct MsgProtectionLevel {
Show 22 fields pub sender_id: Option<u16>, pub tow: u32, pub wn: i16, pub hpl: u16, pub vpl: u16, pub atpl: u16, pub ctpl: u16, pub hvpl: u16, pub vvpl: u16, pub hopl: u16, pub popl: u16, pub ropl: u16, pub lat: f64, pub lon: f64, pub height: f64, pub v_x: i32, pub v_y: i32, pub v_z: i32, pub roll: i32, pub pitch: i32, pub heading: i32, pub flags: u32,
}
Expand description

Computed state and Protection Levels

This message reports the protection levels associated to the given state estimate. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow).

Fields

sender_id: Option<u16>

The message sender_id

tow: u32

GPS Time of Week

wn: i16

GPS week number

hpl: u16

Horizontal protection level

vpl: u16

Vertical protection level

atpl: u16

Along-track position error protection level

ctpl: u16

Cross-track position error protection level

hvpl: u16

Protection level for the error vector between estimated and true along/cross track velocity vector

vvpl: u16

Protection level for the velocity in vehicle upright direction (different from vertical direction if on a slope)

hopl: u16

Heading orientation protection level

popl: u16

Pitch orientation protection level

ropl: u16

Roll orientation protection level

lat: f64

Latitude

lon: f64

Longitude

height: f64

Height

v_x: i32

Velocity in vehicle x direction

v_y: i32

Velocity in vehicle y direction

v_z: i32

Velocity in vehicle z direction

roll: i32

Roll angle

pitch: i32

Pitch angle

heading: i32

Heading angle

flags: u32

Status flags

Implementations

Gets the target_integrity_risk_tir_level stored in flags.

Sets the target_integrity_risk_tir_level bitrange of flags.

Gets the FixMode stored in the flags bitfield.

Returns Ok if the bitrange contains a known FixMode 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 FixMode were added.

Set the bitrange corresponding to the FixMode of the flags bitfield.

Gets the InertialNavigationMode stored in the flags bitfield.

Returns Ok if the bitrange contains a known InertialNavigationMode 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 InertialNavigationMode were added.

Set the bitrange corresponding to the InertialNavigationMode of the flags bitfield.

Gets the TimeStatus stored in the flags bitfield.

Returns Ok if the bitrange contains a known TimeStatus 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 TimeStatus were added.

Set the bitrange corresponding to the TimeStatus of the flags bitfield.

Gets the velocity_valid flag.

Sets the velocity_valid flag.

Gets the attitude_valid flag.

Sets the attitude_valid flag.

Gets the safe_state_hpl flag.

Sets the safe_state_hpl flag.

Gets the safe_state_vpl flag.

Sets the safe_state_vpl flag.

Gets the safe_state_atpl flag.

Sets the safe_state_atpl flag.

Gets the safe_state_ctpl flag.

Sets the safe_state_ctpl flag.

Gets the safe_state_hvpl flag.

Sets the safe_state_hvpl flag.

Gets the safe_state_vvpl flag.

Sets the safe_state_vvpl flag.

Gets the safe_state_hopl flag.

Sets the safe_state_hopl flag.

Gets the safe_state_popl flag.

Sets the safe_state_popl flag.

Gets the safe_state_ropl flag.

Sets the safe_state_ropl flag.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The message type.

The message name.

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Get the message name.

Get the message type.

Get the sender_id if it is set.

Set the sender id.

Number of bytes this message will take on the wire.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.