QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SubtitleWriter.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QFile>
4#include <QtCore/QLoggingCategory>
5#include <QtCore/QObject>
6#include <QtCore/QSize>
7#include <QtCore/QTime>
8#include <QtCore/QTimer>
9
10class Fact;
11
12Q_DECLARE_LOGGING_CATEGORY(SubtitleWriterLog)
13
14class SubtitleWriter : public QObject
15{
16 Q_OBJECT
17
18public:
19 explicit SubtitleWriter(QObject *parent = nullptr);
21
22 void startCapturingTelemetry(const QString &videoFile, QSize size);
23 void stopCapturingTelemetry();
24
25private slots:
26 void _captureTelemetry();
27
28private:
29 QFile _file;
30 QList<Fact*> _facts;
31 QSize _size;
32 QTime _lastEndTime;
33 QTimer _timer;
34
35 static constexpr int _kSampleRate = 1;
36};
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
A Fact is used to hold a single value within the system.
Definition Fact.h:19