pub struct HilState {}
Expand description
MAVLink HIL_STATE
message.
The minimum supported MAVLink version is MAVLink 1
.
§Description
Sent from simulation to autopilot. This packet is useful for high throughput applications such as hardware in the loop simulations.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload>
for
HilState
(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: f32
MAVLink field roll
.
Roll angle
pitch: f32
MAVLink field pitch
.
Pitch angle
yaw: f32
MAVLink field yaw
.
Yaw angle
rollspeed: f32
MAVLink field rollspeed
.
Body frame roll / phi angular speed
pitchspeed: f32
MAVLink field pitchspeed
.
Body frame pitch / theta angular speed
yawspeed: f32
MAVLink field yawspeed
.
Body frame yaw / psi angular speed
lat: i32
MAVLink field lat
.
Latitude
lon: i32
MAVLink field lon
.
Longitude
alt: i32
MAVLink field alt
.
Altitude
vx: i16
MAVLink field vx
.
Ground X Speed (Latitude)
vy: i16
MAVLink field vy
.
Ground Y Speed (Longitude)
vz: i16
MAVLink field vz
.
Ground Z Speed (Altitude)
xacc: i16
MAVLink field xacc
.
X acceleration
yacc: i16
MAVLink field yacc
.
Y acceleration
zacc: i16
MAVLink field zacc
.
Z acceleration
Implementations§
Source§impl HilState
impl HilState
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<'de> Deserialize<'de> for HilState
impl<'de> Deserialize<'de> for HilState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HilState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HilState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl IntoPayload for HilState
impl IntoPayload for HilState
Source§impl MessageSpec for HilState
impl MessageSpec for HilState
Source§impl MessageSpecStatic for HilState
impl MessageSpecStatic for HilState
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 HilState
impl NamedType for HilState
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 Serialize for HilState
impl Serialize for HilState
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 Type for HilState
impl Type for HilState
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.