Enroute Flight Navigation
A navigation app for VFR pilots
|
Traffic receiver: OGN glidernet.org via internet connection. More...
#include <TrafficDataSource_Ogn.h>
Public Slots | |
void | connectToTrafficReceiver () override |
Start attempt to connect to traffic receiver. | |
void | disconnectFromTrafficReceiver () override |
Disconnect from traffic receiver. | |
void | sendPosition (const QGeoCoordinate &coordinate, double course, double speed, double altitude) |
Send position report to APRS-IS server. | |
Public Slots inherited from Traffic::TrafficDataSource_Abstract | |
virtual void | connectToTrafficReceiver ()=0 |
Start attempt to connect to traffic receiver. | |
virtual void | disconnectFromTrafficReceiver ()=0 |
Disconnect from traffic receiver. | |
virtual void | setPassword (const QString &SSID, const QString &password) |
Set password. |
Public Member Functions | |
TrafficDataSource_Ogn (bool isCanonical, QString hostName, quint16 port, QObject *parent=nullptr) | |
Default constructor. | |
Traffic::ConnectionInfo | connectionInfo () const override |
Getter function for the property with the same name. | |
QString | dataFormat () const override |
Getter function for the property with the same name. | |
QString | host () const |
Getter function for the property with the same name. | |
QString | icon () const override |
Getter function for the property with the same name. | |
auto | sourceName () const -> QString override |
Getter function for the property with the same name. | |
quint16 | port () const |
Getter function for the property with the same name. | |
Public Member Functions inherited from Traffic::TrafficDataSource_AbstractSocket | |
TrafficDataSource_AbstractSocket (bool isCanonical, QObject *parent) | |
Default constructor. | |
Public Member Functions inherited from Traffic::TrafficDataSource_Abstract | |
TrafficDataSource_Abstract (bool isCanonical, QObject *parent) | |
Default constructor. | |
bool | canonical () const |
Getter function for the property with the same name. | |
QString | connectivityStatus () const |
Getter function for the property with the same name. | |
QString | errorString () const |
Getter function for the property with the same name. | |
Units::Distance | pressureAltitude () const |
Getter method for property with the same name. | |
QBindable< Units::Distance > | bindablePressureAltitude () const |
Getter method for property with the same name. | |
bool | receivingHeartbeat () const |
Getter function for the property with the same name. | |
QBindable< bool > | bindableReceivingHeartbeat () const |
Getter function for the property with the same name. | |
QString | trafficReceiverRuntimeError () const |
Getter function for the property with the same name. | |
QString | trafficReceiverSelfTestError () const |
Getter function for the property with the same name. |
Properties | |
QString | host |
Host. | |
quint16 | port |
Port. | |
Properties inherited from Traffic::TrafficDataSource_Abstract | |
bool | canonical |
Canonicity. | |
QString | connectivityStatus |
Connectivity status. | |
Traffic::ConnectionInfo | connectionInfo |
Connection Info. | |
QString | dataFormat |
Data format. | |
QString | errorString |
String describing the last socket error. | |
QString | icon |
Icon that can be used to represent the connection in a GUI. | |
Units::Distance | pressureAltitude |
Pressure altitude. | |
bool | receivingHeartbeat |
Heartbeat indicator. | |
QString | sourceName |
Source name. | |
QString | trafficReceiverRuntimeError |
String describing the last traffic data receiver runtime error. | |
QString | trafficReceiverSelfTestError |
String describing the last traffic data receiver self-test error. |
Additional Inherited Members | |
Signals inherited from Traffic::TrafficDataSource_Abstract | |
void | connectivityStatusChanged (QString newStatus) |
Notifier signal. | |
void | errorStringChanged (QString newError) |
Notifier signal. | |
void | factorWithoutPosition (const Traffic::TrafficFactor_DistanceOnly &factor) |
Traffic factor without position. | |
void | factorWithPosition (const Traffic::TrafficFactor_WithPosition &factor) |
Traffic factor with position. | |
void | positionUpdated (Positioning::PositionInfo pInfo) |
Position info. | |
void | receivingHeartbeatChanged (bool) |
Notifier signal. | |
void | trafficReceiverRuntimeErrorChanged () |
Notifier signal. | |
void | trafficReceiverSelfTestErrorChanged () |
Notifier signal. | |
void | trafficReceiverHwVersion (QString result) |
Traffic receiver hardware version. | |
void | trafficReceiverObVersion (QString result) |
Traffic receiver obstacle database version. | |
void | trafficReceiverSwVersion (QString result) |
Traffic receiver software version. | |
void | warning (const Traffic::Warning &warning) |
Traffic warning. | |
Protected Member Functions inherited from Traffic::TrafficDataSource_Abstract | |
void | processAPRS (const QString &data) |
Process APRS-IS data. | |
void | processFLARMData (const QString &data) |
Process FLARM/NMEA data. | |
void | processGDLMessage (const QByteArray &message) |
Process one GDL90 message. | |
void | processXGPSString (const QByteArray &data) |
Process one XGPS string. | |
void | resetReceivingHeartbeat () |
Resetter method for the property with the same name. | |
void | setConnectivityStatus (const QString &newConnectivityStatus) |
Setter function for the property with the same name. | |
void | setErrorString (const QString &newErrorString=QString()) |
Setter function for the property with the same name. | |
void | setPressureAltitude (Units::Distance newPressureAltitude) |
Setter function for the property with the same name. | |
void | setReceivingHeartbeat (bool newReceivingHeartbeat) |
Setter method for the property with the same name. | |
void | setTrafficReceiverRuntimeError (const QString &newErrorString) |
Setter function for the property with the same name. | |
void | setTrafficReceiverSelfTestError (const QString &newErrorString) |
Setter function for the property with the same name. |
Traffic receiver: OGN glidernet.org via internet connection.
Technically, this is APRS-IS protocol over TCP/IP, connecting to aprs.glidernet.org port 14580 and receiving sentences similar to NMEA like the following:
FLRDDE626>APRS,qAS,EGHL:/074548h5111.32N/00102.04W'086/007/A=000607 id0ADDE626 -019fpm +0.0rot 5.5dB 3e -4.3kHz
Definition at line 46 of file TrafficDataSource_Ogn.h.
Traffic::TrafficDataSource_Ogn::TrafficDataSource_Ogn | ( | bool | isCanonical, |
QString | hostName, | ||
quint16 | port, | ||
QObject * | parent = nullptr ) |
Default constructor.
isCanonical | Intializer for property canonical |
hostName | Name of the host where the traffic receiver is expected |
port | Port at the host where the traffic receiver is expected |
parent | The standard QObject parent pointer |
|
inlinenodiscardoverridevirtual |
Getter function for the property with the same name.
Reimplemented from Traffic::TrafficDataSource_Abstract.
Definition at line 85 of file TrafficDataSource_Ogn.h.
|
overrideslot |
Start attempt to connect to traffic receiver.
This method implements the pure virtual method declared by its superclass.
|
inlinenodiscardoverridevirtual |
Getter function for the property with the same name.
Implements Traffic::TrafficDataSource_Abstract.
Definition at line 93 of file TrafficDataSource_Ogn.h.
|
overrideslot |
Disconnect from traffic receiver.
This method implements the pure virtual method declared by its superclass.
|
inlinenodiscard |
Getter function for the property with the same name.
Definition at line 99 of file TrafficDataSource_Ogn.h.
|
inlinenodiscardoverridevirtual |
Getter function for the property with the same name.
This method implements the pure virtual method declared by its superclass.
Implements Traffic::TrafficDataSource_Abstract.
Definition at line 111 of file TrafficDataSource_Ogn.h.
|
inlinenodiscard |
Getter function for the property with the same name.
Definition at line 129 of file TrafficDataSource_Ogn.h.
|
slot |
Send position report to APRS-IS server.
This method sends a position report with the given parameters to the APRS-IS server.
coordinate | The geographic coordinate (latitude, longitude, altitude). |
course | The course in degrees. |
speed | The speed in knots. |
altitude | The altitude in meters. |
|
inlinenodiscardoverridevirtual |
Getter function for the property with the same name.
This method implements the pure virtual method declared by its superclass.
Implements Traffic::TrafficDataSource_Abstract.
Definition at line 120 of file TrafficDataSource_Ogn.h.