QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VideoTelemetryOverlay.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QObject>
4#include <QtCore/QString>
5#include <QtCore/QTimer>
6
8
9class Fact;
10
13class VideoTelemetryOverlay : public QObject
14{
15 Q_OBJECT
16
17 friend class VideoManagerTest;
19
20public:
22 explicit VideoTelemetryOverlay(Fact* enabled, QObject* parent = nullptr);
23
24 QString text() const { return _text; }
25
26signals:
28
29private:
30 void _setEnabled(bool enabled);
31 void _update();
32
33 TelemetryBarValues _telemetry;
36 bool _layoutStale = true;
37 QTimer _timer;
38 QString _text;
39
40 static constexpr int kUpdateIntervalMs = 500;
41};
A Fact is used to hold a single value within the system.
Definition Fact.h:15
VideoTelemetryOverlay(Fact *enabled, QObject *parent=nullptr)
Shows the overlay while enabled, a bool Fact, is on.