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

#include <BluetoothLink.h>

Inheritance diagram for BluetoothLink:
Collaboration diagram for BluetoothLink:

Public Member Functions

 BluetoothLink (SharedLinkConfigurationPtr &config, QObject *parent=nullptr)
 ~BluetoothLink () override
bool isConnected () const override
void disconnect () override
Public Member Functions inherited from LinkInterface
virtual ~LinkInterface ()
virtual bool isLogReplay () const
virtual bool isSecureConnection () const
virtual bool isRadioLink () const
void reportRadioStatusReceived ()
SharedLinkConfigurationPtr linkConfiguration ()
const SharedLinkConfigurationPtr linkConfiguration () const
uint8_t mavlinkChannel () const
bool mavlinkChannelIsSet () const
bool decodedFirstMavlinkPacket () const
void setDecodedFirstMavlinkPacket (bool decodedFirstMavlinkPacket)
void writeBytesThreadSafe (const char *bytes, int length)
void sendMessageThreadSafe (mavlink_message_t &message)
void addVehicleReference ()
void removeVehicleReference ()
void reportMavlinkV1Traffic ()
void reportMavlinkV2Traffic ()
 Called when a v2 message is received: permanently suppresses the v1-only warning for this link.
bool mavlinkV1TrafficReported () const
SigningController * signing ()
 Per-link signing state and confirmation state machine. Non-null after channel allocation.
const SigningController * signing () const

Additional Inherited Members

Signals inherited from LinkInterface
void bytesReceived (LinkInterface *link, const QByteArray &data)
void bytesSent (LinkInterface *link, const QByteArray &data)
void connected ()
void disconnected ()
void communicationError (const QString &title, const QString &error)
Static Public Member Functions inherited from LinkInterface
static void setMavlinkV1TrafficGraceMsecs (int msecs)
Static Public Attributes inherited from LinkInterface
static constexpr int kMavlinkV1TrafficGraceMsecsDefault = 10000
Protected Member Functions inherited from LinkInterface
 LinkInterface (SharedLinkConfigurationPtr &config, QObject *parent=nullptr)
 Links are only created by LinkManager so constructor is not public.
virtual bool _allocateMavlinkChannel ()
virtual void _freeMavlinkChannel ()
void _connectionRemoved ()
void _shutdownWorkerThread (QThread *thread, const QLoggingCategory &category, bool allowTerminate=true)
Protected Attributes inherited from LinkInterface
SharedLinkConfigurationPtr _config

Detailed Description

Definition at line 13 of file BluetoothLink.h.

Constructor & Destructor Documentation

◆ BluetoothLink()

◆ ~BluetoothLink()

BluetoothLink::~BluetoothLink ( )
override

Definition at line 48 of file BluetoothLink.cc.

References LinkInterface::_shutdownWorkerThread().

Member Function Documentation

◆ disconnect()

void BluetoothLink::disconnect ( )
overridevirtual

Implements LinkInterface.

Definition at line 77 of file BluetoothLink.cc.

◆ isConnected()

bool BluetoothLink::isConnected ( ) const
overridevirtual

Implements LinkInterface.

Definition at line 61 of file BluetoothLink.cc.


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