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/QObject>
5#include <QtCore/QSize>
6#include <QtCore/QTime>
7#include <QtCore/QTimer>
8
9class Fact;
10
11class SubtitleWriter : public QObject
12{
13 Q_OBJECT
14
15public:
16 explicit SubtitleWriter(QObject *parent = nullptr);
18
19 void startCapturingTelemetry(const QString &videoFile, QSize size);
21
22private slots:
23 void _captureTelemetry();
24
25private:
26 QFile _file;
27 QList<Fact*> _facts;
28 QSize _size;
29 QTime _lastEndTime;
30 QTimer _timer;
31
32 static constexpr int _kSampleRate = 1;
33};
A Fact is used to hold a single value within the system.
Definition Fact.h:17
void stopCapturingTelemetry()
void startCapturingTelemetry(const QString &videoFile, QSize size)