QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
LogDownloadData Struct Reference

#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
 

Detailed Description

Definition at line 17 of file LogEntry.h.

Constructor & Destructor Documentation

◆ LogDownloadData()

LogDownloadData::LogDownloadData ( QGCLogEntry *const  logEntry)
explicit

Definition at line 9 of file LogEntry.cc.

◆ ~LogDownloadData()

LogDownloadData::~LogDownloadData ( )

Definition at line 16 of file LogEntry.cc.

Member Function Documentation

◆ advanceChunk()

void LogDownloadData::advanceChunk ( )

Definition at line 21 of file LogEntry.cc.

References chunk_table, chunkBins(), and current_chunk.

◆ chunkBins()

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().

◆ chunkEquals()

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.

◆ numChunks()

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.

Member Data Documentation

◆ chunk_table

QBitArray LogDownloadData::chunk_table

Definition at line 36 of file LogEntry.h.

Referenced by advanceChunk(), and chunkEquals().

◆ current_chunk

uint32_t LogDownloadData::current_chunk = 0

Definition at line 37 of file LogEntry.h.

Referenced by advanceChunk(), and chunkBins().

◆ elapsed

QElapsedTimer LogDownloadData::elapsed

Definition at line 44 of file LogEntry.h.

◆ entry

QGCLogEntry* const LogDownloadData::entry = nullptr

Definition at line 34 of file LogEntry.h.

Referenced by chunkBins(), and numChunks().

◆ file

QFile LogDownloadData::file

Definition at line 38 of file LogEntry.h.

◆ filename

QString LogDownloadData::filename

Definition at line 39 of file LogEntry.h.

◆ ID

uint LogDownloadData::ID = 0

Definition at line 33 of file LogEntry.h.

◆ kChunkSize

constexpr uint32_t LogDownloadData::kChunkSize = kTableBins * MAVLINK_MSG_LOG_DATA_FIELD_DATA_LEN
staticconstexpr

Definition at line 47 of file LogEntry.h.

Referenced by chunkBins(), and numChunks().

◆ kTableBins

constexpr uint32_t LogDownloadData::kTableBins = 2048
staticconstexpr

Definition at line 46 of file LogEntry.h.

Referenced by chunkBins().

◆ last_status_written

uint LogDownloadData::last_status_written = 0

Definition at line 41 of file LogEntry.h.

◆ rate_avg

qreal LogDownloadData::rate_avg = 0.

Definition at line 43 of file LogEntry.h.

◆ rate_bytes

size_t LogDownloadData::rate_bytes = 0

Definition at line 42 of file LogEntry.h.

◆ written

uint LogDownloadData::written = 0

Definition at line 40 of file LogEntry.h.


The documentation for this struct was generated from the following files: