dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Serial Connection Plugin

Impliments serial connection to the flight hardware for Telemetry. More...

Namespaces

 Core
 The Core namespace contains all classes that make up the Core plugin which constitute the basic functionality of the GCS.
 
 Ui
 

Classes

class  SerialConnection
 
class  SerialPlugin
 
class  SerialPluginConfiguration
 
class  SerialPluginOptionsPage
 

Functions

bool sortPorts (const QSerialPortInfo &s1, const QSerialPortInfo &s2)
 
 SerialConnection::SerialConnection ()
 
virtual SerialConnection::~SerialConnection ()
 
virtual QList< Core::IDevice * > SerialConnection::availableDevices ()
 
virtual QIODevice * SerialConnection::openDevice (Core::IDevice *deviceName)
 
virtual void SerialConnection::closeDevice (const QString &deviceName)
 
virtual QString SerialConnection::connectionName ()
 
virtual QString SerialConnection::shortName ()
 
virtual void SerialConnection::suspendPolling ()
 
virtual void SerialConnection::resumePolling ()
 
virtual bool SerialConnection::reconnect ()
 Used to flag that the device wants that we try to reconnect if it gets disconnected Currently this should be used only with bluetooth devices. More...
 
bool SerialConnection::deviceOpened ()
 
SerialPluginConfigurationSerialConnection::Config () const
 
SerialPluginOptionsPageSerialConnection::Optionspage () const
 
 SerialPluginConfiguration::SerialPluginConfiguration (QString classId, QSettings *qSettings=nullptr, QObject *parent=nullptr)
 
QString SerialPluginConfiguration::speed ()
 
bool SerialPluginConfiguration::reconnect ()
 
void SerialPluginConfiguration::saveConfig (QSettings *settings) const
 
IUAVGadgetConfiguration * SerialPluginConfiguration::clone ()
 
void SerialPluginConfiguration::savesettings () const
 
void SerialPluginConfiguration::restoresettings ()
 
virtual SerialPluginConfiguration::~SerialPluginConfiguration ()
 
 SerialPluginOptionsPage::SerialPluginOptionsPage (SerialPluginConfiguration *config, QObject *parent=nullptr)
 
QString SerialPluginOptionsPage::id () const
 
QString SerialPluginOptionsPage::trName () const
 
QString SerialPluginOptionsPage::category () const
 
QString SerialPluginOptionsPage::trCategory () const
 
QWidget * SerialPluginOptionsPage::createPage (QWidget *parent)
 
void SerialPluginOptionsPage::apply ()
 
void SerialPluginOptionsPage::finish ()
 

Variables

bool SerialConnection::m_deviceOpened
 
QTimer SerialConnection::periodicTimer
 

Public Slots

void SerialPluginConfiguration::setSpeed (QString speed)
 
void SerialPluginConfiguration::setReconnect (bool reconnect)
 

Protected Slots

void SerialConnection::onEnumerationChanged ()
 

Detailed Description

Impliments serial connection to the flight hardware for Telemetry.

Implements serial connection to the flight hardware for Telemetry.

Function Documentation

void SerialPluginOptionsPage::apply ( )
virtual

Called when the user presses apply or OK.

Saves the current values

Implements Core::IOptionsPage.

Definition at line 91 of file serialpluginoptionspage.cpp.

QList< IDevice * > SerialConnection::availableDevices ( )
virtual

Return the list of devices found on the system

Implements Core::IConnection.

Definition at line 75 of file serialplugin.cpp.

QString SerialPluginOptionsPage::category ( ) const
inlinevirtual

Reimplemented from Core::IOptionsPage.

Definition at line 57 of file serialpluginoptionspage.h.

IUAVGadgetConfiguration * SerialPluginConfiguration::clone ( )
virtual

Clones a configuration.

Implements Core::IUAVGadgetConfiguration.

Definition at line 56 of file serialpluginconfiguration.cpp.

void SerialConnection::closeDevice ( const QString &  deviceName)
virtual

Reimplemented from Core::IConnection.

Definition at line 159 of file serialplugin.cpp.

SerialPluginConfiguration* SerialConnection::Config ( ) const
inline

Definition at line 65 of file serialplugin.h.

QString SerialConnection::connectionName ( )
virtual

Connection type name "USB HID"

Implements Core::IConnection.

Definition at line 170 of file serialplugin.cpp.

QWidget * SerialPluginOptionsPage::createPage ( QWidget *  parent)
virtual

Implements Core::IOptionsPage.

Definition at line 40 of file serialpluginoptionspage.cpp.

bool SerialConnection::deviceOpened ( )
inline

Definition at line 64 of file serialplugin.h.

void SerialPluginOptionsPage::finish ( )
virtual

Implements Core::IOptionsPage.

Definition at line 98 of file serialpluginoptionspage.cpp.

QString SerialPluginOptionsPage::id ( ) const
inlinevirtual

Reimplemented from Core::IOptionsPage.

Definition at line 55 of file serialpluginoptionspage.h.

QIODevice * SerialConnection::openDevice ( Core::IDevice device)
virtual

Open a device, and return a QIODevice interface from it It should be a dynamically created object as it will be deleted by the connection manager.

Implements Core::IConnection.

Definition at line 133 of file serialplugin.cpp.

SerialPluginOptionsPage* SerialConnection::Optionspage ( ) const
inline

Definition at line 66 of file serialplugin.h.

bool SerialPluginConfiguration::reconnect ( )
inline

Definition at line 45 of file serialpluginconfiguration.h.

virtual bool SerialConnection::reconnect ( )
inlinevirtual

Used to flag that the device wants that we try to reconnect if it gets disconnected Currently this should be used only with bluetooth devices.

Returns
true if the device want's us to try to reconnect it

Reimplemented from Core::IConnection.

Definition at line 63 of file serialplugin.h.

void SerialPluginConfiguration::restoresettings ( )

Definition at line 72 of file serialpluginconfiguration.cpp.

void SerialConnection::resumePolling ( )
virtual

Tells the Serial plugin to resume polling for serial devices

Reimplemented from Core::IConnection.

Definition at line 191 of file serialplugin.cpp.

void SerialPluginConfiguration::saveConfig ( QSettings *  settings) const
virtual

Saves a configuration.

Reimplemented from Core::IUAVGadgetConfiguration.

Definition at line 68 of file serialpluginconfiguration.cpp.

void SerialPluginConfiguration::savesettings ( ) const

Definition at line 83 of file serialpluginconfiguration.cpp.

SerialConnection::SerialConnection ( )

Definition at line 39 of file serialplugin.cpp.

SerialPluginConfiguration::SerialPluginConfiguration ( QString  classId,
QSettings *  qSettings = nullptr,
QObject *  parent = nullptr 
)
explicit

Loads a saved configuration or defaults if non exist.

Definition at line 41 of file serialpluginconfiguration.cpp.

SerialPluginOptionsPage::SerialPluginOptionsPage ( SerialPluginConfiguration config,
QObject *  parent = nullptr 
)
explicit

Definition at line 33 of file serialpluginoptionspage.cpp.

QString SerialConnection::shortName ( )
virtual

Short name to display in a combo box

Reimplemented from Core::IConnection.

Definition at line 175 of file serialplugin.cpp.

bool sortPorts ( const QSerialPortInfo &  s1,
const QSerialPortInfo &  s2 
)

Definition at line 61 of file serialplugin.cpp.

QString SerialPluginConfiguration::speed ( )
inline

Definition at line 44 of file serialpluginconfiguration.h.

void SerialConnection::suspendPolling ( )
virtual

Tells the Serial plugin to stop polling for serial devices

Reimplemented from Core::IConnection.

Definition at line 183 of file serialplugin.cpp.

QString SerialPluginOptionsPage::trCategory ( ) const
inlinevirtual

Reimplemented from Core::IOptionsPage.

Definition at line 58 of file serialpluginoptionspage.h.

QString SerialPluginOptionsPage::trName ( ) const
inlinevirtual

Reimplemented from Core::IOptionsPage.

Definition at line 56 of file serialpluginoptionspage.h.

SerialConnection::~SerialConnection ( )
virtual

Definition at line 53 of file serialplugin.cpp.

SerialPluginConfiguration::~SerialPluginConfiguration ( )
virtual

Definition at line 90 of file serialpluginconfiguration.cpp.

Variable Documentation

bool SerialConnection::m_deviceOpened
protected

Definition at line 81 of file serialplugin.h.

QTimer SerialConnection::periodicTimer
protected

Definition at line 83 of file serialplugin.h.

Public Slots

void SerialPluginConfiguration::setReconnect ( bool  reconnect)
inlineslot

Definition at line 58 of file serialpluginconfiguration.h.

void SerialPluginConfiguration::setSpeed ( QString  speed)
inlineslot

Definition at line 57 of file serialpluginconfiguration.h.

Protected Slots

void SerialConnection::onEnumerationChanged ( )
protectedslot

Definition at line 57 of file serialplugin.cpp.