pub struct PING_DATA {
pub time_usec: u64,
pub seq: u32,
pub target_system: u8,
pub target_component: u8,
}
๐Deprecated: To be removed / merged with TIMESYNC. See
TIMESYNC
(Deprecated since 2011-08)Available on crate feature
avssuas
only.Expand description
id: 4 A ping message either requesting or responding to a ping. This allows to measure the system latencies, including serial port, radio modem and UDP connections. The ping microservice is documented at https://mavlink.io/en/services/ping.html.
Fieldsยง
ยงtime_usec: u64
๐Deprecated: To be removed / merged with TIMESYNC. See
TIMESYNC
(Deprecated since 2011-08)Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.
seq: u32
๐Deprecated: To be removed / merged with TIMESYNC. See
TIMESYNC
(Deprecated since 2011-08)PING sequence
target_system: u8
๐Deprecated: To be removed / merged with TIMESYNC. See
TIMESYNC
(Deprecated since 2011-08)0: request ping from all receiving systems. If greater than 0: message is a ping response and number is the system id of the requesting system
target_component: u8
๐Deprecated: To be removed / merged with TIMESYNC. See
TIMESYNC
(Deprecated since 2011-08)0: request ping from all receiving components. If greater than 0: message is a ping response and number is the component id of the requesting component.
Implementationsยง
Trait Implementationsยง
Sourceยงimpl<'de> Deserialize<'de> for PING_DATA
impl<'de> Deserialize<'de> for PING_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>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl MessageData for PING_DATA
impl MessageData for PING_DATA
const ID: u32 = 4u32
const NAME: &'static str = "PING"
const EXTRA_CRC: u8 = 237u8
const ENCODED_LEN: usize = 14usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
impl StructuralPartialEq for PING_DATA
Auto Trait Implementationsยง
impl Freeze for PING_DATA
impl RefUnwindSafe for PING_DATA
impl Send for PING_DATA
impl Sync for PING_DATA
impl Unpin for PING_DATA
impl UnwindSafe for PING_DATA
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more