QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
FactFloatAsBool Class Reference

#include <Common.h>

+ Inheritance diagram for FactFloatAsBool:
+ Collaboration diagram for FactFloatAsBool:

Public Member Functions

 FactFloatAsBool (QObject *parent, Fact *floatFact)
 
virtual ~FactFloatAsBool ()=default
 

Additional Inherited Members

- Signals inherited from Fact
void bitmaskStringsChanged ()
 
void bitmaskValuesChanged ()
 
void enumsChanged ()
 
void sendValueChangedSignalsChanged (bool sendValueChangedSignals)
 
void valueChanged (const QVariant &value)
 This signal is only meant for use by the QT property system. It should not be connected to by client code.
 
void rawValueChanged (const QVariant &value)
 
void vehicleUpdated (const QVariant &value)
 Signalled when the param write ack comes back from the vehicle.
 
void containerRawValueChanged (const QVariant &value)
 This signal is meant for use by Fact container implementations. Used to send changed values to vehicle.
 
- Protected Member Functions inherited from Fact
QString _variantToString (const QVariant &variant, int decimalPlaces) const
 
void _sendValueChangedSignal (const QVariant &value)
 
- Protected Attributes inherited from Fact
QString _name
 
int _componentId = -1
 
QVariant _rawValue {0}
 
QRecursiveMutex _rawValueMutex
 
FactMetaData::ValueType_t _type = FactMetaData::valueTypeInt32
 
FactMetaData_metaData = nullptr
 
bool _sendValueChangedSignals = true
 
bool _deferredValueChangeSignal = false
 
FactValueSliderListModel_valueSliderModel = nullptr
 
- Static Protected Attributes inherited from Fact
static constexpr const char * kMissingMetadata = "Meta data pointer missing"
 

Detailed Description

Fact to show a float fact as boolean, true if >0, false otherwise

Definition at line 57 of file Common.h.

Constructor & Destructor Documentation

◆ FactFloatAsBool()

FactFloatAsBool::FactFloatAsBool ( QObject *  parent,
Fact floatFact 
)

Definition at line 62 of file Common.cc.

References Fact::rawValueChanged().

◆ ~FactFloatAsBool()

virtual FactFloatAsBool::~FactFloatAsBool ( )
virtualdefault

The documentation for this class was generated from the following files: