pub struct ControlSystemState {Show 17 fields
pub time_usec: u64,
pub x_acc: f32,
pub y_acc: f32,
pub z_acc: f32,
pub x_vel: f32,
pub y_vel: f32,
pub z_vel: f32,
pub x_pos: f32,
pub y_pos: f32,
pub z_pos: f32,
pub airspeed: f32,
pub vel_variance: [f32; 3],
pub pos_variance: [f32; 3],
pub q: [f32; 4],
pub roll_rate: f32,
pub pitch_rate: f32,
pub yaw_rate: f32,
}Expand description
MAVLink CONTROL_SYSTEM_STATE message.
The minimum supported MAVLink version is MAVLink 1.
§Description
The smoothed, monotonic system state used to feed the control loops of the system.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
ControlSystemState (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§time_usec: u64MAVLink 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.
x_acc: f32MAVLink field x_acc.
X acceleration in body frame
y_acc: f32MAVLink field y_acc.
Y acceleration in body frame
z_acc: f32MAVLink field z_acc.
Z acceleration in body frame
x_vel: f32MAVLink field x_vel.
X velocity in body frame
y_vel: f32MAVLink field y_vel.
Y velocity in body frame
z_vel: f32MAVLink field z_vel.
Z velocity in body frame
x_pos: f32MAVLink field x_pos.
X position in local frame
y_pos: f32MAVLink field y_pos.
Y position in local frame
z_pos: f32MAVLink field z_pos.
Z position in local frame
airspeed: f32MAVLink field airspeed.
Airspeed, set to -1 if unknown
vel_variance: [f32; 3]MAVLink field vel_variance.
Variance of body velocity estimate
pos_variance: [f32; 3]MAVLink field pos_variance.
Variance in local position
q: [f32; 4]MAVLink field q.
The attitude, represented as Quaternion
roll_rate: f32MAVLink field roll_rate.
Angular rate in roll axis
pitch_rate: f32MAVLink field pitch_rate.
Angular rate in pitch axis
yaw_rate: f32MAVLink field yaw_rate.
Angular rate in yaw axis
Implementations§
Source§impl ControlSystemState
impl ControlSystemState
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 ControlSystemState
impl Clone for ControlSystemState
Source§fn clone(&self) -> ControlSystemState
fn clone(&self) -> ControlSystemState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ControlSystemState
impl Debug for ControlSystemState
Source§impl Default for ControlSystemState
impl Default for ControlSystemState
Source§fn default() -> ControlSystemState
fn default() -> ControlSystemState
Source§impl<'de> Deserialize<'de> for ControlSystemState
impl<'de> Deserialize<'de> for ControlSystemState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ControlSystemState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ControlSystemState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<ControlSystemState> for Common
impl From<ControlSystemState> for Common
Source§fn from(value: ControlSystemState) -> Common
fn from(value: ControlSystemState) -> Common
Source§impl IntoPayload for ControlSystemState
impl IntoPayload for ControlSystemState
Source§impl MessageSpec for ControlSystemState
impl MessageSpec for ControlSystemState
Source§impl MessageSpecStatic for ControlSystemState
impl MessageSpecStatic for ControlSystemState
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 ControlSystemState
impl NamedType for ControlSystemState
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 ControlSystemState
impl PartialEq for ControlSystemState
Source§impl Serialize for ControlSystemState
impl Serialize for ControlSystemState
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 ControlSystemState
impl TryFrom<&Payload> for ControlSystemState
Source§impl Type for ControlSystemState
impl Type for ControlSystemState
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.