QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VehicleTemperatureFactGroup.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 *temperature1 READ temperature1 CONSTANT)
9 Q_PROPERTY(Fact *temperature2 READ temperature2 CONSTANT)
10 Q_PROPERTY(Fact *temperature3 READ temperature3 CONSTANT)
11
12public:
13 explicit VehicleTemperatureFactGroup(QObject *parent = nullptr);
14
15 Fact *temperature1() { return &_temperature1Fact; }
16 Fact *temperature2() { return &_temperature2Fact; }
17 Fact *temperature3() { return &_temperature3Fact; }
18
19 // Overrides from FactGroup
20 void handleMessage(Vehicle *vehicle, const mavlink_message_t &message) final;
21
22private:
23 void _handleScaledPressure(const mavlink_message_t &message);
24 void _handleScaledPressure2(const mavlink_message_t &message);
25 void _handleScaledPressure3(const mavlink_message_t &message);
26 void _handleHighLatency(const mavlink_message_t &message);
27 void _handleHighLatency2(const mavlink_message_t &message);
28
29 Fact _temperature1Fact = Fact(0, QStringLiteral("temperature1"), FactMetaData::valueTypeDouble);
30 Fact _temperature2Fact = Fact(0, QStringLiteral("temperature2"), FactMetaData::valueTypeDouble);
31 Fact _temperature3Fact = Fact(0, QStringLiteral("temperature3"), FactMetaData::valueTypeDouble);
32};
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