mavsdk::Camera::Storage Struct Reference ​
#include: camera.h
Information about the camera's storage status.
Public Types ​
Type | Description |
---|---|
enum StorageStatus | Storage status type. |
enum StorageType | Storage type. |
Data Fields ​
int32_t component_id {} - Component ID.
bool video_on {} - Whether video recording is currently in process.
bool photo_interval_on {} - Whether a photo interval is currently in process.
float used_storage_mib {} - Used storage (in MiB)
float available_storage_mib {} - Available storage (in MiB)
float total_storage_mib {} - Total storage (in MiB)
float recording_time_s {} - Elapsed time since starting the video recording (in seconds)
std::string media_folder_name {} - Current folder name where media are saved.
StorageStatus storage_status {} - Storage status.
uint32_t storage_id {} - Storage ID starting at 1.
StorageType storage_type {} - Storage type.
Member Enumeration Documentation ​
enum StorageStatus ​
Storage status type.
Value | Description |
---|---|
NotAvailable | Status not available. |
Unformatted | Storage is not formatted (i.e. has no recognized file system). |
Formatted | Storage is formatted (i.e. has recognized a file system). |
NotSupported | Storage status is not supported. |
enum StorageType ​
Storage type.
Value | Description |
---|---|
Unknown | Storage type unknown. |
UsbStick | Storage type USB stick. |
Sd | Storage type SD card. |
Microsd | Storage type MicroSD card. |
Hd | Storage type HD mass storage. |
Other | Storage type other, not listed. |
Field Documentation ​
component_id ​
int32_t mavsdk::Camera::Storage::component_id {}
Component ID.
video_on ​
bool mavsdk::Camera::Storage::video_on {}
Whether video recording is currently in process.
photo_interval_on ​
bool mavsdk::Camera::Storage::photo_interval_on {}
Whether a photo interval is currently in process.
used_storage_mib ​
float mavsdk::Camera::Storage::used_storage_mib {}
Used storage (in MiB)
available_storage_mib ​
float mavsdk::Camera::Storage::available_storage_mib {}
Available storage (in MiB)
total_storage_mib ​
float mavsdk::Camera::Storage::total_storage_mib {}
Total storage (in MiB)
recording_time_s ​
float mavsdk::Camera::Storage::recording_time_s {}
Elapsed time since starting the video recording (in seconds)
media_folder_name ​
std::string mavsdk::Camera::Storage::media_folder_name {}
Current folder name where media are saved.
storage_status ​
StorageStatus mavsdk::Camera::Storage::storage_status {}
Storage status.
storage_id ​
uint32_t mavsdk::Camera::Storage::storage_id {}
Storage ID starting at 1.
storage_type ​
StorageType mavsdk::Camera::Storage::storage_type {}
Storage type.