pub struct MavLinkSensor {
pub dst_addr: u8,
pub src_addr: u8,
pub sensor_present: u32,
pub sensor_enabled: u32,
pub sensor_health: u32,
}Expand description
Represents a MAVLink System Status Sensor packet (frame type 0xAC).
To decode data packed within the frame, please refer to the official MAVLink documentation.
Fields§
§dst_addr: u8§src_addr: u8§sensor_present: u32Bitmask of sensors present.
sensor_enabled: u32Bitmask of sensors enabled.
sensor_health: u32Bitmask of sensors health.
Implementations§
Trait Implementations§
Source§impl Clone for MavLinkSensor
impl Clone for MavLinkSensor
Source§fn clone(&self) -> MavLinkSensor
fn clone(&self) -> MavLinkSensor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CrsfPacket for MavLinkSensor
impl CrsfPacket for MavLinkSensor
Source§const PACKET_TYPE: PacketType = PacketType::MavLinkSensor
const PACKET_TYPE: PacketType = PacketType::MavLinkSensor
The CRSF frame type identifier for this packet.
Source§const MIN_PAYLOAD_SIZE: usize = 14usize
const MIN_PAYLOAD_SIZE: usize = 14usize
The minimum expected length of the packet’s payload in bytes.
For fixed-size packets, this is the same as the payload size.
Source§fn from_bytes(data: &[u8]) -> Result<Self, CrsfParsingError>
fn from_bytes(data: &[u8]) -> Result<Self, CrsfParsingError>
Creates a packet instance from a payload byte slice.
The slice is guaranteed to have a length of at least
MIN_PAYLOAD_SIZE.fn to_bytes(&self, buffer: &mut [u8]) -> Result<usize, CrsfParsingError>
fn validate_buffer_size(&self, buffer: &[u8]) -> Result<(), CrsfParsingError>
Source§impl Debug for MavLinkSensor
impl Debug for MavLinkSensor
Source§impl PartialEq for MavLinkSensor
impl PartialEq for MavLinkSensor
impl StructuralPartialEq for MavLinkSensor
Auto Trait Implementations§
impl Freeze for MavLinkSensor
impl RefUnwindSafe for MavLinkSensor
impl Send for MavLinkSensor
impl Sync for MavLinkSensor
impl Unpin for MavLinkSensor
impl UnwindSafe for MavLinkSensor
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