pub struct HilControls {
pub time_usec: u64,
pub roll_ailerons: f32,
pub pitch_elevator: f32,
pub yaw_rudder: f32,
pub throttle: f32,
pub aux1: f32,
pub aux2: f32,
pub aux3: f32,
pub aux4: f32,
pub mode: MavMode,
pub nav_mode: u8,
}
Expand description
MAVLink HIL_CONTROLS
message.
The minimum supported MAVLink version is MAVLink 1
.
§Description
Sent from autopilot to simulation. Hardware in the loop control outputs. Alternative to HIL_ACTUATOR_CONTROLS.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload>
for
HilControls
(encoding) and [IntoPayload
] (decoding) traits.
These traits are implemented by Message
proc macro.
Fields§
§time_usec: u64
MAVLink field time_usec
.
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.
roll_ailerons: f32
MAVLink field roll_ailerons
.
Control output -1 .. 1
pitch_elevator: f32
MAVLink field pitch_elevator
.
Control output -1 .. 1
yaw_rudder: f32
MAVLink field yaw_rudder
.
Control output -1 .. 1
throttle: f32
MAVLink field throttle
.
Throttle 0 .. 1
aux1: f32
MAVLink field aux1
.
Aux 1, -1 .. 1
aux2: f32
MAVLink field aux2
.
Aux 2, -1 .. 1
aux3: f32
MAVLink field aux3
.
Aux 3, -1 .. 1
aux4: f32
MAVLink field aux4
.
Aux 4, -1 .. 1
mode: MavMode
MAVLink field mode
.
System mode.
MAVLink field nav_mode
.
Navigation mode (MAV_NAV_MODE)
Implementations§
Source§impl HilControls
impl HilControls
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 HilControls
impl Clone for HilControls
Source§fn clone(&self) -> HilControls
fn clone(&self) -> HilControls
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HilControls
impl Debug for HilControls
Source§impl Default for HilControls
impl Default for HilControls
Source§fn default() -> HilControls
fn default() -> HilControls
Source§impl<'de> Deserialize<'de> for HilControls
impl<'de> Deserialize<'de> for HilControls
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HilControls, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HilControls, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<HilControls> for Common
impl From<HilControls> for Common
Source§fn from(value: HilControls) -> Common
fn from(value: HilControls) -> Common
Source§impl IntoPayload for HilControls
impl IntoPayload for HilControls
Source§impl MessageSpec for HilControls
impl MessageSpec for HilControls
Source§impl MessageSpecStatic for HilControls
impl MessageSpecStatic for HilControls
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 HilControls
impl NamedType for HilControls
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 HilControls
impl PartialEq for HilControls
Source§impl Serialize for HilControls
impl Serialize for HilControls
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 HilControls
impl TryFrom<&Payload> for HilControls
Source§impl Type for HilControls
impl Type for HilControls
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.