QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VehicleWindFactGroup.h
Go to the documentation of this file.
1#pragma once
2
3#include "FactGroup.h"
4
6{
7 Q_OBJECT
8 Q_PROPERTY(Fact *direction READ direction CONSTANT)
9 Q_PROPERTY(Fact *speed READ speed CONSTANT)
10 Q_PROPERTY(Fact *verticalSpeed READ verticalSpeed CONSTANT)
11
12public:
13 explicit VehicleWindFactGroup(QObject *parent = nullptr);
14
15 Fact *direction() { return &_directionFact; }
16 Fact *speed() { return &_speedFact; }
17 Fact *verticalSpeed() { return &_verticalSpeedFact; }
18
19 // Overrides from FactGroup
20 void handleMessage(Vehicle *vehicle, const mavlink_message_t &message) final;
21
22private:
23 void _handleHighLatency(const mavlink_message_t &message);
24 void _handleHighLatency2(const mavlink_message_t &message);
25 void _handleWindCov(const mavlink_message_t &message);
26#ifndef QGC_NO_ARDUPILOT_DIALECT
27 void _handleWind(const mavlink_message_t &message);
28#endif
29
30 Fact _directionFact = Fact(0, QStringLiteral("direction"), FactMetaData::valueTypeDouble);
31 Fact _speedFact = Fact(0, QStringLiteral("speed"), FactMetaData::valueTypeDouble);
32 Fact _verticalSpeedFact = Fact(0, QStringLiteral("verticalSpeed"), FactMetaData::valueTypeDouble);
33};
struct __mavlink_message mavlink_message_t
Used to group Facts together into an object hierarachy.
Definition FactGroup.h:19
A Fact is used to hold a single value within the system.
Definition Fact.h:19