StorageInformation class
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.
STORAGE_INFORMATION
- Implemented types
Constructors
-
StorageInformation({required uint32_t timeBootMs, required float totalCapacity, required float usedCapacity, required float availableCapacity, required float readSpeed, required float writeSpeed, required uint8_t storageId, required uint8_t storageCount, required StorageStatus status, required StorageType type, required List<
char> name, required StorageUsageFlag storageUsage}) - StorageInformation.parse(ByteData data_)
-
factory
Properties
- availableCapacity → float
-
Available storage capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mavlinkCrcExtra → int
-
no setteroverride
- mavlinkMessageId → int
-
no setteroverride
-
name
→ List<
char> -
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.
final
- readSpeed → float
-
Read speed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → StorageStatus
-
Status of storage
final
- storageCount → uint8_t
-
Number of storage devices
final
- storageId → uint8_t
-
Storage ID (1 for first, 2 for second, etc.)
final
- storageUsage → StorageUsageFlag
-
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.
final
- timeBootMs → uint32_t
-
Timestamp (time since system boot).
final
- totalCapacity → float
-
Total capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored.
final
- type → StorageType
-
Type of storage
final
- usedCapacity → float
-
Used capacity. If storage is not ready (STORAGE_STATUS_READY) value will be ignored.
final
- writeSpeed → float
-
Write speed.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → ByteData -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- mavlinkEncodedLength → const int