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

#include <OnboardLogEntry.h>

+ Collaboration diagram for OnboardLogDownloadData:

Public Member Functions

 OnboardLogDownloadData (QGCOnboardLogEntry *const logEntry)
 
 ~OnboardLogDownloadData ()
 
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
 
QGCOnboardLogEntry *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 const uint32_t kChunkSize = OnboardLogDownloadData::kTableBins * MAVLINK_MSG_LOG_DATA_FIELD_DATA_LEN
 

Detailed Description

Definition at line 13 of file OnboardLogEntry.h.

Constructor & Destructor Documentation

◆ OnboardLogDownloadData()

OnboardLogDownloadData::OnboardLogDownloadData ( QGCOnboardLogEntry *const  logEntry)
explicit

Definition at line 12 of file OnboardLogEntry.cc.

◆ ~OnboardLogDownloadData()

OnboardLogDownloadData::~OnboardLogDownloadData ( )

Definition at line 19 of file OnboardLogEntry.cc.

Member Function Documentation

◆ advanceChunk()

void OnboardLogDownloadData::advanceChunk ( )

Definition at line 24 of file OnboardLogEntry.cc.

References chunk_table, chunkBins(), and current_chunk.

◆ chunkBins()

uint32_t OnboardLogDownloadData::chunkBins ( ) const

The number of MAVLINK_MSG_LOG_DATA_FIELD_DATA_LEN bins in the current chunk.

Definition at line 30 of file OnboardLogEntry.cc.

References current_chunk, entry, kChunkSize, and kTableBins.

Referenced by advanceChunk().

◆ chunkEquals()

bool OnboardLogDownloadData::chunkEquals ( const bool  val) const

True if all bins in the chunk have been set to val.

Definition at line 42 of file OnboardLogEntry.cc.

References chunk_table.

◆ numChunks()

uint32_t OnboardLogDownloadData::numChunks ( ) const

The number of kChunkSize chunks in the file.

Definition at line 36 of file OnboardLogEntry.cc.

References entry, and kChunkSize.

Member Data Documentation

◆ chunk_table

QBitArray OnboardLogDownloadData::chunk_table

Definition at line 32 of file OnboardLogEntry.h.

Referenced by advanceChunk(), and chunkEquals().

◆ current_chunk

uint32_t OnboardLogDownloadData::current_chunk = 0

Definition at line 33 of file OnboardLogEntry.h.

Referenced by advanceChunk(), and chunkBins().

◆ elapsed

QElapsedTimer OnboardLogDownloadData::elapsed

Definition at line 40 of file OnboardLogEntry.h.

◆ entry

QGCOnboardLogEntry* const OnboardLogDownloadData::entry = nullptr

Definition at line 30 of file OnboardLogEntry.h.

Referenced by chunkBins(), and numChunks().

◆ file

QFile OnboardLogDownloadData::file

Definition at line 34 of file OnboardLogEntry.h.

◆ filename

QString OnboardLogDownloadData::filename

Definition at line 35 of file OnboardLogEntry.h.

◆ ID

uint OnboardLogDownloadData::ID = 0

Definition at line 29 of file OnboardLogEntry.h.

◆ kChunkSize

const uint32_t OnboardLogDownloadData::kChunkSize = OnboardLogDownloadData::kTableBins * MAVLINK_MSG_LOG_DATA_FIELD_DATA_LEN
static

Definition at line 43 of file OnboardLogEntry.h.

Referenced by chunkBins(), and numChunks().

◆ kTableBins

constexpr uint32_t OnboardLogDownloadData::kTableBins = 2048
staticconstexpr

Definition at line 42 of file OnboardLogEntry.h.

Referenced by chunkBins().

◆ last_status_written

uint OnboardLogDownloadData::last_status_written = 0

Definition at line 37 of file OnboardLogEntry.h.

◆ rate_avg

qreal OnboardLogDownloadData::rate_avg = 0.

Definition at line 39 of file OnboardLogEntry.h.

◆ rate_bytes

size_t OnboardLogDownloadData::rate_bytes = 0

Definition at line 38 of file OnboardLogEntry.h.

◆ written

uint OnboardLogDownloadData::written = 0

Definition at line 36 of file OnboardLogEntry.h.


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