pub struct STORAGE_INFORMATION_DATA {
    pub time_boot_ms: u32,
    pub total_capacity: f32,
    pub used_capacity: f32,
    pub available_capacity: f32,
    pub read_speed: f32,
    pub write_speed: f32,
    pub storage_id: u8,
    pub storage_count: u8,
    pub status: StorageStatus,
    pub mavtype: StorageType,
    pub name: [u8; 32],
    pub storage_usage: StorageUsageFlag,
}Expand description
id: 261 Information about a storage medium. This message is sent in response to a request with MAV_CMD_REQUEST_MESSAGE and whenever the status of the storage changes (STORAGE_STATUS). Use MAV_CMD_REQUEST_MESSAGE.param2 to indicate the index/id of requested storage: 0 for all, 1 for first, 2 for second, etc..
Fields§
§time_boot_ms: u32Timestamp (time since system boot)..
total_capacity: f32Total capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored..
used_capacity: f32Used capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored..
available_capacity: f32Available storage capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored..
read_speed: f32Read speed..
write_speed: f32Write speed..
storage_id: u8Storage ID (1 for first, 2 for second, etc.).
storage_count: u8Number of storage devices.
status: StorageStatusStatus of storage.
mavtype: StorageTypeType of storage.
name: [u8; 32]Textual storage name to be used in UI (microSD 1, Internal Memory, etc.) This is a NULL terminated string. If it is exactly 32 characters long, add a terminating NULL. If this string is empty, the generic type is shown to the user..
storage_usage: StorageUsageFlagFlags indicating whether this instance is preferred storage for photos, videos, etc. Note: Implementations should initially set the flags on the system-default storage id used for saving media (if possible/supported). This setting can then be overridden using MAV_CMD_SET_STORAGE_USAGE. If the media usage flags are not set, a GCS may assume storage ID 1 is the default storage for all media types..
Implementations§
source§impl STORAGE_INFORMATION_DATA
 
impl STORAGE_INFORMATION_DATA
pub const ENCODED_LEN: usize = 61usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for STORAGE_INFORMATION_DATA
 
impl Clone for STORAGE_INFORMATION_DATA
source§fn clone(&self) -> STORAGE_INFORMATION_DATA
 
fn clone(&self) -> STORAGE_INFORMATION_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for STORAGE_INFORMATION_DATA
 
impl Debug for STORAGE_INFORMATION_DATA
source§impl Default for STORAGE_INFORMATION_DATA
 
impl Default for STORAGE_INFORMATION_DATA
source§impl<'de> Deserialize<'de> for STORAGE_INFORMATION_DATA
 
impl<'de> Deserialize<'de> for STORAGE_INFORMATION_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>,
source§impl MessageData for STORAGE_INFORMATION_DATA
 
impl MessageData for STORAGE_INFORMATION_DATA
type Message = MavMessage
const ID: u32 = 261u32
const NAME: &'static str = "STORAGE_INFORMATION"
const EXTRA_CRC: u8 = 179u8
const ENCODED_LEN: usize = 61usize
fn deser(_version: MavlinkVersion, _input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq<STORAGE_INFORMATION_DATA> for STORAGE_INFORMATION_DATA
 
impl PartialEq<STORAGE_INFORMATION_DATA> for STORAGE_INFORMATION_DATA
source§fn eq(&self, other: &STORAGE_INFORMATION_DATA) -> bool
 
fn eq(&self, other: &STORAGE_INFORMATION_DATA) -> bool
self and other values to be equal, and is used
by ==.