pub struct MissionSetCurrent {
pub target_system: u8,
pub target_component: u8,
pub seq: u16,
}
Expand description
MAVLink MISSION_SET_CURRENT
message.
The minimum supported MAVLink version is MAVLink 1
.
§Description
Set the mission item with sequence number seq as the current item and emit MISSION_CURRENT (whether or not the mission number changed). If a mission is currently being executed, the system will continue to this new mission item on the shortest path, skipping any intermediate mission items. Note that mission jump repeat counters are not reset (see MAV_CMD_DO_JUMP param2).
This message may trigger a mission state-machine change on some systems: for example from MISSION_STATE_NOT_STARTED or MISSION_STATE_PAUSED to MISSION_STATE_ACTIVE. If the system is in mission mode, on those systems this command might therefore start, restart or resume the mission. If the system is not in mission mode this message must not trigger a switch to mission mode.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload>
for
MissionSetCurrent
(encoding) and [IntoPayload
] (decoding) traits.
These traits are implemented by Message
proc macro.
Fields§
§target_system: u8
MAVLink field target_system
.
System ID
target_component: u8
MAVLink field target_component
.
Component ID
seq: u16
MAVLink field seq
.
Sequence
Implementations§
Source§impl MissionSetCurrent
impl MissionSetCurrent
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> u32
pub const fn message_id() -> u32
Message ID
.
Sourcepub const fn min_supported_mavlink_version() -> MavLinkVersion
pub const fn min_supported_mavlink_version() -> MavLinkVersion
Minimum supported MAVLink version for this message.
Trait Implementations§
Source§impl Clone for MissionSetCurrent
impl Clone for MissionSetCurrent
Source§fn clone(&self) -> MissionSetCurrent
fn clone(&self) -> MissionSetCurrent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MissionSetCurrent
impl Debug for MissionSetCurrent
Source§impl Default for MissionSetCurrent
impl Default for MissionSetCurrent
Source§fn default() -> MissionSetCurrent
fn default() -> MissionSetCurrent
Source§impl<'de> Deserialize<'de> for MissionSetCurrent
impl<'de> Deserialize<'de> for MissionSetCurrent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MissionSetCurrent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MissionSetCurrent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<MissionSetCurrent> for Common
impl From<MissionSetCurrent> for Common
Source§fn from(value: MissionSetCurrent) -> Common
fn from(value: MissionSetCurrent) -> Common
Source§impl IntoPayload for MissionSetCurrent
impl IntoPayload for MissionSetCurrent
Source§impl MessageSpec for MissionSetCurrent
impl MessageSpec for MissionSetCurrent
Source§impl MessageSpecStatic for MissionSetCurrent
impl MessageSpecStatic for MissionSetCurrent
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> u32
fn message_id() -> u32
ID
.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for MissionSetCurrent
impl NamedType for MissionSetCurrent
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl PartialEq for MissionSetCurrent
impl PartialEq for MissionSetCurrent
Source§impl Serialize for MissionSetCurrent
impl Serialize for MissionSetCurrent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl TryFrom<&Payload> for MissionSetCurrent
impl TryFrom<&Payload> for MissionSetCurrent
Source§impl Type for MissionSetCurrent
impl Type for MissionSetCurrent
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition
will be put into the type map.