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,
}dialect-storm32 only.Expand description
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.
ID: 60045
Fields§
§flags: MlrsRadioLinkStatsFlagsRadio link statistics flags.
target_system: u8System ID (ID of target system, normally flight controller).
target_component: u8Component ID (normally 0 for broadcast).
rx_LQ_rc: u8Link quality of RC data stream from Tx to Rx. Values: 1..100, 0: no link connection, UINT8_MAX: unknown.
rx_LQ_ser: u8Link quality of serial MAVLink data stream from Tx to Rx. Values: 1..100, 0: no link connection, UINT8_MAX: unknown.
rx_rssi1: u8Rssi of antenna 1. 0: no reception, UINT8_MAX: unknown.
rx_snr1: i8Noise on antenna 1. Radio link dependent. INT8_MAX: unknown.
tx_LQ_ser: u8Link quality of serial MAVLink data stream from Rx to Tx. Values: 1..100, 0: no link connection, UINT8_MAX: unknown.
tx_rssi1: u8Rssi of antenna 1. 0: no reception. UINT8_MAX: unknown.
tx_snr1: i8Noise on antenna 1. Radio link dependent. INT8_MAX: unknown.
rx_rssi2: u8Rssi of antenna 2. 0: no reception, UINT8_MAX: use rx_rssi1 if it is known else unknown.
rx_snr2: i8Noise on antenna 2. Radio link dependent. INT8_MAX: use rx_snr1 if it is known else unknown.
tx_rssi2: u8Rssi of antenna 2. 0: no reception. UINT8_MAX: use tx_rssi1 if it is known else unknown.
tx_snr2: i8Noise on antenna 2. Radio link dependent. INT8_MAX: use tx_snr1 if it is known else unknown.
frequency1: f32Frequency on antenna1 in Hz. 0: unknown.
frequency2: f32Frequency on antenna2 in Hz. 0: unknown.
Implementations§
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for MLRS_RADIO_LINK_STATS_DATA
impl<'arbitrary> Arbitrary<'arbitrary> for MLRS_RADIO_LINK_STATS_DATA
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self from the entirety of the given
unstructured data. Read moreSource§impl Clone for MLRS_RADIO_LINK_STATS_DATA
impl Clone for MLRS_RADIO_LINK_STATS_DATA
Source§fn clone(&self) -> MLRS_RADIO_LINK_STATS_DATA
fn clone(&self) -> MLRS_RADIO_LINK_STATS_DATA
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MLRS_RADIO_LINK_STATS_DATA
impl Debug for MLRS_RADIO_LINK_STATS_DATA
Source§impl Default for MLRS_RADIO_LINK_STATS_DATA
impl Default for MLRS_RADIO_LINK_STATS_DATA
Source§impl<'de> Deserialize<'de> for MLRS_RADIO_LINK_STATS_DATA
impl<'de> Deserialize<'de> for MLRS_RADIO_LINK_STATS_DATA
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl MessageData for MLRS_RADIO_LINK_STATS_DATA
impl MessageData for MLRS_RADIO_LINK_STATS_DATA
Source§impl TS for MLRS_RADIO_LINK_STATS_DATA
impl TS for MLRS_RADIO_LINK_STATS_DATA
Source§type WithoutGenerics = MLRS_RADIO_LINK_STATS_DATA
type WithoutGenerics = MLRS_RADIO_LINK_STATS_DATA
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or ().
The only requirement for these dummy types is that EXPORT_TO must be None. Read moreSource§type OptionInnerType = MLRS_RADIO_LINK_STATS_DATA
type OptionInnerType = MLRS_RADIO_LINK_STATS_DATA
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete() -> String
fn decl_concrete() -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl() -> String
fn decl() -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline() -> String
fn inline() -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened() -> String
fn inline_flattened() -> String
This function will panic if the type cannot be flattened.
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported.The returned path does not include the base directory from
TS_RS_EXPORT_DIR. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
§fn dependencies() -> Vec<Dependency>where
Self: 'static,
fn dependencies() -> Vec<Dependency>where
Self: 'static,
§fn export() -> Result<(), ExportError>where
Self: 'static,
fn export() -> Result<(), ExportError>where
Self: 'static,
TS::export_all]. Read more§fn export_all() -> Result<(), ExportError>where
Self: 'static,
fn export_all() -> Result<(), ExportError>where
Self: 'static,
To export only this type, without its dependencies, use [
TS::export]. Read more§fn export_all_to(out_dir: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
fn export_all_to(out_dir: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
To export only this type, without its dependencies, use [
TS::export]. Read more§fn export_to_string() -> Result<String, ExportError>where
Self: 'static,
fn export_to_string() -> Result<String, ExportError>where
Self: 'static,
§fn default_output_path() -> Option<PathBuf>
fn default_output_path() -> Option<PathBuf>
T should be exported. Read more