pub struct PING_DATA {
pub time_usec: u64,
pub seq: u32,
pub target_system: u8,
pub target_component: u8,
}
Available on crate feature
common
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
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
PING sequence.
target_system: u8
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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)