pub type StorageInformation = StorageInformation;
Expand description

Aliased Type§

struct StorageInformation {
    pub time_boot_ms: u32,
    pub storage_id: u8,
    pub storage_count: u8,
    pub status: StorageStatus,
    pub total_capacity: f32,
    pub used_capacity: f32,
    pub available_capacity: f32,
    pub read_speed: f32,
    pub write_speed: f32,
    pub type_: StorageType,
    pub name: [u8; 32],
    pub storage_usage: StorageUsageFlag,
}

Fields§

§time_boot_ms: u32

MAVLink field time_boot_ms.

Timestamp (time since system boot).

§storage_id: u8

MAVLink field storage_id.

Storage ID (1 for first, 2 for second, etc.)

§storage_count: u8

MAVLink field storage_count.

Number of storage devices

§status: StorageStatus

MAVLink field status.

Status of storage

§total_capacity: f32

MAVLink field total_capacity.

Total capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored.

§used_capacity: f32

MAVLink field used_capacity.

Used capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored.

§available_capacity: f32

MAVLink field available_capacity.

Available storage capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored.

§read_speed: f32

MAVLink field read_speed.

Read speed.

§write_speed: f32

MAVLink field write_speed.

Write speed.

§type_: StorageType

MAVLink field type.

Type of storage

§name: [u8; 32]

MAVLink field name.

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: StorageUsageFlag

MAVLink field storage_usage.

Flags 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.