Struct mavlink::matrixpilot::MISSION_CURRENT_DATA
source · pub struct MISSION_CURRENT_DATA {
pub seq: u16,
pub total: u16,
pub mission_state: MissionState,
pub mission_mode: u8,
}
Available on crate feature
matrixpilot
only.Expand description
id: 42 Message that announces the sequence number of the current target mission item (that the system will fly towards/execute when the mission is running). This message should be streamed all the time (nominally at 1Hz). This message should be emitted following a call to MAV_CMD_DO_SET_MISSION_CURRENT or SET_MISSION_CURRENT..
Fields§
§seq: u16
Sequence.
total: u16
Total number of mission items. 0: Not supported, UINT16_MAX if no mission is present on the vehicle..
mission_state: MissionState
Mission state machine state. MISSION_STATE_UNKNOWN if state reporting not supported..
mission_mode: u8
Vehicle is in a mode that can execute mission items or suspended. 0: Unknown, 1: In mission mode, 2: Suspended (not in mission mode)..
Implementations§
source§impl MISSION_CURRENT_DATA
impl MISSION_CURRENT_DATA
pub const ENCODED_LEN: usize = 6usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for MISSION_CURRENT_DATA
impl Clone for MISSION_CURRENT_DATA
source§fn clone(&self) -> MISSION_CURRENT_DATA
fn clone(&self) -> MISSION_CURRENT_DATA
Returns a copy 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 Debug for MISSION_CURRENT_DATA
impl Debug for MISSION_CURRENT_DATA
source§impl Default for MISSION_CURRENT_DATA
impl Default for MISSION_CURRENT_DATA
source§impl<'de> Deserialize<'de> for MISSION_CURRENT_DATA
impl<'de> Deserialize<'de> for MISSION_CURRENT_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 MISSION_CURRENT_DATA
impl MessageData for MISSION_CURRENT_DATA
const ID: u32 = 42u32
const NAME: &'static str = "MISSION_CURRENT"
const EXTRA_CRC: u8 = 28u8
const ENCODED_LEN: usize = 6usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for MISSION_CURRENT_DATA
impl PartialEq for MISSION_CURRENT_DATA
source§impl Serialize for MISSION_CURRENT_DATA
impl Serialize for MISSION_CURRENT_DATA
impl StructuralPartialEq for MISSION_CURRENT_DATA
Auto Trait Implementations§
impl Freeze for MISSION_CURRENT_DATA
impl RefUnwindSafe for MISSION_CURRENT_DATA
impl Send for MISSION_CURRENT_DATA
impl Sync for MISSION_CURRENT_DATA
impl Unpin for MISSION_CURRENT_DATA
impl UnwindSafe for MISSION_CURRENT_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
)