23#include "units/Angle.h"
24#include "units/Distance.h"
43 friend TrafficDataSource_Abstract;
125 return m_relativeBearing;
139 explicit Warning(
const QString& AlarmLevel,
140 const QString& RelativeBearing,
141 const QString& AlarmType,
142 const QString& RelativeVertical,
143 const QString& RelativeDistance);
146 int m_alarmLevel {-1};
147 int m_alarmType {-1};
148 Units::Distance m_hDist;
149 Units::Angle m_relativeBearing;
150 Units::Distance m_vDist;
Base class for all traffic receiver data sources.
Q_INVOKABLE QString description() const
Translated, human-readable alarm message.
Warning()=default
Default constructor.
Q_INVOKABLE int alarmLevel() const
Alarm level, as reported by FLARM.
Q_INVOKABLE bool operator==(const Traffic::Warning &rhs)
Comparison.
Q_INVOKABLE Units::Distance vDist() const
Vertical distance to obstacle or aircraft.
Q_INVOKABLE int alarmType() const
Alarm type, as reported by FLARM.
Q_INVOKABLE Units::Distance hDist() const
Horizontal distance to obstacle or aircraft.
Q_INVOKABLE Units::Angle relativeBearing() const
Direction to obstacle or aircraft.
Convenience class for angle computations.
Convenience class for distance computations.