QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VehicleHygrometerFactGroup.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
FactGroup.h
"
4
5
class
VehicleHygrometerFactGroup
:
public
FactGroup
6
{
7
Q_OBJECT
8
Q_PROPERTY(
Fact
*hygroID READ hygroID CONSTANT)
9
Q_PROPERTY(
Fact
*hygroTemp READ hygroTemp CONSTANT)
10
Q_PROPERTY(
Fact
*hygroHumi READ hygroHumi CONSTANT)
11
12
public
:
13
explicit
VehicleHygrometerFactGroup
(QObject *parent =
nullptr
);
14
15
Fact
*hygroID() {
return
&
_hygroIDFact
; }
16
Fact
*hygroTemp() {
return
&
_hygroTempFact
; }
17
Fact
*hygroHumi() {
return
&
_hygroHumiFact
; }
18
19
// Overrides from FactGroup
20
void
handleMessage(
Vehicle
*vehicle,
const
mavlink_message_t
&message)
final
;
21
22
protected
:
23
void
_handleHygrometerSensor
(
const
mavlink_message_t
&message);
24
25
Fact
_hygroTempFact
=
Fact
(0, QStringLiteral(
"temperature"
),
FactMetaData::valueTypeDouble
);
26
Fact
_hygroHumiFact
=
Fact
(0, QStringLiteral(
"humidity"
),
FactMetaData::valueTypeDouble
);
27
Fact
_hygroIDFact
=
Fact
(0, QStringLiteral(
"hygrometerid"
),
FactMetaData::valueTypeUint16
);
28
};
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
FactMetaData::valueTypeUint16
@ valueTypeUint16
Definition
FactMetaData.h:29
Fact
A Fact is used to hold a single value within the system.
Definition
Fact.h:19
VehicleHygrometerFactGroup
Definition
VehicleHygrometerFactGroup.h:6
VehicleHygrometerFactGroup::_handleHygrometerSensor
void _handleHygrometerSensor(const mavlink_message_t &message)
Definition
VehicleHygrometerFactGroup.cc:29
VehicleHygrometerFactGroup::_hygroIDFact
Fact _hygroIDFact
Definition
VehicleHygrometerFactGroup.h:27
VehicleHygrometerFactGroup::_hygroHumiFact
Fact _hygroHumiFact
Definition
VehicleHygrometerFactGroup.h:26
VehicleHygrometerFactGroup::_hygroTempFact
Fact _hygroTempFact
Definition
VehicleHygrometerFactGroup.h:25
Vehicle
Definition
Vehicle.h:82
src
Vehicle
FactGroups
VehicleHygrometerFactGroup.h
Generated by
1.9.8