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
5
class
VehicleWindFactGroup
:
public
FactGroup
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
12
public
:
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
22
private
:
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
};
FactGroup.h
mavlink_message_t
struct __mavlink_message mavlink_message_t
Definition
QGCCorePlugin.h:23
FactGroup
Used to group Facts together into an object hierarachy.
Definition
FactGroup.h:19
FactMetaData::valueTypeDouble
@ valueTypeDouble
Definition
FactMetaData.h:36
Fact
A Fact is used to hold a single value within the system.
Definition
Fact.h:19
VehicleWindFactGroup
Definition
VehicleWindFactGroup.h:6
Vehicle
Definition
Vehicle.h:82
src
Vehicle
FactGroups
VehicleWindFactGroup.h
Generated by
1.9.8