Struct MLRS_RADIO_LINK_STATS_DATA

Source
pub struct MLRS_RADIO_LINK_STATS_DATA {
Show 16 fields pub flags: MlrsRadioLinkStatsFlags, pub target_system: u8, pub target_component: u8, pub rx_LQ_rc: u8, pub rx_LQ_ser: u8, pub rx_rssi1: u8, pub rx_snr1: i8, pub tx_LQ_ser: u8, pub tx_rssi1: u8, pub tx_snr1: i8, pub rx_rssi2: u8, pub rx_snr2: i8, pub tx_rssi2: u8, pub tx_snr2: i8, pub frequency1: f32, pub frequency2: f32,
}
Available on crate feature storm32 only.
Expand description

id: 60045 Radio link statistics for a MAVLink RC receiver or transmitter and other links. Tx: ground-side device, Rx: vehicle-side device. The message is normally emitted in regular time intervals upon each actual or expected reception of an over-the-air data packet on the link. A MAVLink RC receiver should emit it shortly after it emits a RADIO_RC_CHANNELS message (if it is emitting that message). Per default, rssi values are in MAVLink units: 0 represents weakest signal, 254 represents maximum signal, UINT8_MAX represents unknown. The RADIO_LINK_STATS_FLAGS_RSSI_DBM flag is set if the rssi units are negative dBm: 1..254 correspond to -1..-254 dBm, 0 represents no reception, UINT8_MAX represents unknown. The target_system field should normally be set to the system id of the system the link is connected to, typically the flight controller. The target_component field can normally be set to 0, so that all components of the system can receive the message. Note: The frequency fields are extensions to ensure that they are located at the end of the serialized payload and subject to MAVLink’s trailing-zero trimming.

Fields§

§flags: MlrsRadioLinkStatsFlags

Radio link statistics flags.

§target_system: u8

System ID (ID of target system, normally flight controller).

§target_component: u8

Component ID (normally 0 for broadcast).

§rx_LQ_rc: u8

Link quality of RC data stream from Tx to Rx. Values: 1..100, 0: no link connection, UINT8_MAX: unknown.

§rx_LQ_ser: u8

Link quality of serial MAVLink data stream from Tx to Rx. Values: 1..100, 0: no link connection, UINT8_MAX: unknown.

§rx_rssi1: u8

Rssi of antenna 1. 0: no reception, UINT8_MAX: unknown.

§rx_snr1: i8

Noise on antenna 1. Radio link dependent. INT8_MAX: unknown.

§tx_LQ_ser: u8

Link quality of serial MAVLink data stream from Rx to Tx. Values: 1..100, 0: no link connection, UINT8_MAX: unknown.

§tx_rssi1: u8

Rssi of antenna 1. 0: no reception. UINT8_MAX: unknown.

§tx_snr1: i8

Noise on antenna 1. Radio link dependent. INT8_MAX: unknown.

§rx_rssi2: u8

Rssi of antenna 2. 0: no reception, UINT8_MAX: use rx_rssi1 if it is known else unknown.

§rx_snr2: i8

Noise on antenna 2. Radio link dependent. INT8_MAX: use rx_snr1 if it is known else unknown.

§tx_rssi2: u8

Rssi of antenna 2. 0: no reception. UINT8_MAX: use tx_rssi1 if it is known else unknown.

§tx_snr2: i8

Noise on antenna 2. Radio link dependent. INT8_MAX: use tx_snr1 if it is known else unknown.

§frequency1: f32

Frequency on antenna1 in Hz. 0: unknown.

§frequency2: f32

Frequency on antenna2 in Hz. 0: unknown.

Implementations§

Trait Implementations§

Source§

fn clone(&self) -> MLRS_RADIO_LINK_STATS_DATA

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

fn default() -> Self

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

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

const ID: u32 = 60_045u32

Source§

const NAME: &'static str = "MLRS_RADIO_LINK_STATS"

Source§

const EXTRA_CRC: u8 = 14u8

Source§

const ENCODED_LEN: usize = 23usize

Source§

type Message = MavMessage

Source§

fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>

Source§

fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize

Source§

fn eq(&self, other: &MLRS_RADIO_LINK_STATS_DATA) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,