5#include <QtCore/QtMath>
29 const qreal num =
static_cast<qreal
>((
entry->size() - (
current_chunk *
kChunkSize))) /
static_cast<qreal
>(MAVLINK_MSG_LOG_DATA_FIELD_DATA_LEN);
30 return qMin(
static_cast<uint32_t
>(qCeil(num)),
kTableBins);
35 const qreal num =
static_cast<qreal
>(
entry->size()) /
static_cast<qreal
>(
kChunkSize);
46QGCLogEntry::QGCLogEntry(uint logId,
const QDateTime &dateTime, uint logSize,
bool received, QObject *parent)
50 , _logTimeUTC(dateTime)
56QGCLogEntry::~QGCLogEntry()
61QString QGCLogEntry::sizeStr()
const
63 return qgcApp()->bigSizeToString(_logSize);
#define QGC_LOGGING_CATEGORY(name, categoryStr)
static constexpr uint32_t kTableBins
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.
static constexpr uint32_t kChunkSize
bool chunkEquals(const bool val) const
True if all bins in the chunk have been set to val.