|
Enroute Flight Navigation
A navigation app for VFR pilots
|
Traffic receiver: Simulator that provides constant data. More...
#include <TrafficDataSource_Simulate.h>
Public Slots | |
| void | connectToTrafficReceiver () override |
| Start attempt to connect to traffic receiver. | |
| void | disconnectFromTrafficReceiver () override |
| Disconnect from traffic receiver. | |
| void | setBarometricHeight (Units::Distance barAlt) |
| Set distance that is to be reported by this class as the barometric altitude of ownship. | |
| void | setCoordinate (const QGeoCoordinate &coordinate) |
| Set coordinate that is to be reported by this class as the position of ownship. | |
| void | setGS (Units::Speed GS) |
| Set speed that is to be reported by this class as the ground speed of ownship. | |
| void | setTT (Units::Angle TT) |
| Set angle that is to be reported by this class as the true track of ownship. | |
| void | setTrafficFactor_DistanceOnly (Traffic::TrafficFactor_DistanceOnly *factor=nullptr) |
| Set traffic factor (distance only) that is to be reported by this class. | |
| void | setVSpeed (Units::Speed vSpeed) |
| Set speed that is to be reported by this class as the vertical speed of ownship. | |
| void | addTraffic (Traffic::TrafficFactor_WithPosition *factor) |
| Add a traffic factor that is to be reported by this class. | |
| void | removeTraffic () |
| Remove all traffic factors (with position) | |
| 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_Simulate (bool isCanonical, QObject *parent) | |
| Default constructor. | |
| QString | dataFormat () const override |
| 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. | |
| 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. | |
| virtual Traffic::ConnectionInfo | connectionInfo () 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. | |
| QBindable< QString > | bindableTrafficReceiverRuntimeError () |
| Getter function for the property with the same name. | |
| QString | trafficReceiverSelfTestError () const |
| Getter function for the property with the same name. | |
| QBindable< QString > | bindableTrafficReceiverSelfTestError () |
| Getter function for the property with the same name. | |
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 | 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. | |
| 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. | |
Traffic receiver: Simulator that provides constant data.
For testing purposes, this class provides constant traffic data.
Definition at line 37 of file TrafficDataSource_Simulate.h.
| Traffic::TrafficDataSource_Simulate::TrafficDataSource_Simulate | ( | bool | isCanonical, |
| QObject * | parent ) |
Default constructor.
| isCanonical | Intializer for property canonical |
| parent | The standard QObject parent pointer |
|
inlineslot |
Add a traffic factor that is to be reported by this class.
| factor | Traffic factor to be added. The pointer must be valid. The traffic factor will be owned by this class. |
Definition at line 159 of file TrafficDataSource_Simulate.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 56 of file TrafficDataSource_Simulate.h.
|
overrideslot |
Disconnect from traffic receiver.
This method implements the pure virtual method declared by its superclass.
|
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 65 of file TrafficDataSource_Simulate.h.
|
inlineslot |
Set distance that is to be reported by this class as the barometric altitude of ownship.
| barAlt | Barometric altitude of simulated ownship |
Definition at line 98 of file TrafficDataSource_Simulate.h.
|
inlineslot |
Set coordinate that is to be reported by this class as the position of ownship.
| coordinate | Coordinate of simulated ownship |
Definition at line 107 of file TrafficDataSource_Simulate.h.
|
inlineslot |
Set speed that is to be reported by this class as the ground speed of ownship.
| GS | Ground speed of simulated ownship |
Definition at line 117 of file TrafficDataSource_Simulate.h.
|
inlineslot |
Set traffic factor (distance only) that is to be reported by this class.
| factor | Traffic factor, or nullptr to remove all distance-only traffic. The traffic factor will be owned by this class. |
Definition at line 136 of file TrafficDataSource_Simulate.h.
|
inlineslot |
Set angle that is to be reported by this class as the true track of ownship.
| TT | True track of simulated ownship |
Definition at line 126 of file TrafficDataSource_Simulate.h.
|
inlineslot |
Set speed that is to be reported by this class as the vertical speed of ownship.
| vSpeed | Vertical speed of simulated ownship |
Definition at line 149 of file TrafficDataSource_Simulate.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 74 of file TrafficDataSource_Simulate.h.