|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <LogEntry.h>
Collaboration diagram for LogDownloadData:Public Member Functions | |
| LogDownloadData (QGCLogEntry *const logEntry) | |
| ~LogDownloadData () | |
| void | advanceChunk () |
| uint32_t | chunkBins () const |
| The number of MAVLINK_MSG_LOG_DATA_FIELD_DATA_LEN bins in the current chunk. | |
| uint32_t | numChunks () const |
| The number of kChunkSize chunks in the file. | |
| bool | chunkEquals (const bool val) const |
| True if all bins in the chunk have been set to val. | |
Public Attributes | |
| uint | ID = 0 |
| QGCLogEntry *const | entry = nullptr |
| QBitArray | chunk_table |
| uint32_t | current_chunk = 0 |
| QFile | file |
| QString | filename |
| uint | written = 0 |
| uint | last_status_written = 0 |
| size_t | rate_bytes = 0 |
| qreal | rate_avg = 0. |
| QElapsedTimer | elapsed |
Static Public Attributes | |
| static constexpr uint32_t | kTableBins = 2048 |
| static constexpr uint32_t | kChunkSize = kTableBins * MAVLINK_MSG_LOG_DATA_FIELD_DATA_LEN |
Definition at line 17 of file LogEntry.h.
|
explicit |
Definition at line 9 of file LogEntry.cc.
| LogDownloadData::~LogDownloadData | ( | ) |
Definition at line 16 of file LogEntry.cc.
| void LogDownloadData::advanceChunk | ( | ) |
Definition at line 21 of file LogEntry.cc.
References chunk_table, chunkBins(), and current_chunk.
| uint32_t LogDownloadData::chunkBins | ( | ) | const |
The number of MAVLINK_MSG_LOG_DATA_FIELD_DATA_LEN bins in the current chunk.
Definition at line 27 of file LogEntry.cc.
References current_chunk, entry, kChunkSize, and kTableBins.
Referenced by advanceChunk().
| bool LogDownloadData::chunkEquals | ( | const bool | val | ) | const |
True if all bins in the chunk have been set to val.
Definition at line 39 of file LogEntry.cc.
References chunk_table.
| uint32_t LogDownloadData::numChunks | ( | ) | const |
The number of kChunkSize chunks in the file.
Definition at line 33 of file LogEntry.cc.
References entry, and kChunkSize.
| QBitArray LogDownloadData::chunk_table |
Definition at line 36 of file LogEntry.h.
Referenced by advanceChunk(), and chunkEquals().
| uint32_t LogDownloadData::current_chunk = 0 |
Definition at line 37 of file LogEntry.h.
Referenced by advanceChunk(), and chunkBins().
| QElapsedTimer LogDownloadData::elapsed |
Definition at line 44 of file LogEntry.h.
| QGCLogEntry* const LogDownloadData::entry = nullptr |
Definition at line 34 of file LogEntry.h.
Referenced by chunkBins(), and numChunks().
| QFile LogDownloadData::file |
Definition at line 38 of file LogEntry.h.
| QString LogDownloadData::filename |
Definition at line 39 of file LogEntry.h.
| uint LogDownloadData::ID = 0 |
Definition at line 33 of file LogEntry.h.
|
staticconstexpr |
Definition at line 47 of file LogEntry.h.
Referenced by chunkBins(), and numChunks().
|
staticconstexpr |
Definition at line 46 of file LogEntry.h.
Referenced by chunkBins().
| uint LogDownloadData::last_status_written = 0 |
Definition at line 41 of file LogEntry.h.
| qreal LogDownloadData::rate_avg = 0. |
Definition at line 43 of file LogEntry.h.
| size_t LogDownloadData::rate_bytes = 0 |
Definition at line 42 of file LogEntry.h.
| uint LogDownloadData::written = 0 |
Definition at line 40 of file LogEntry.h.