List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes
RdAirplane::Ads_bEvent Class Reference

#include <Ads_bEvent.h>

Public Types

enum  AltitudeType { eGPSAltitude, ePressureAltitude, eGDASCorrectedPressureAltitude, eManuallyCorrectedPressureAltitude }
 

Public Member Functions

 Ads_bEvent (const utl::TimeStamp &pCaptureTime, const utl::UTMPoint &pCoordinates, const std::string &pAds_bMessageAsHex, Flight *pFlight)
 
double getAltitude (AltitudeType pAltitudeType) const
 
AltitudeType getAltitudeType () const
 
const utl::TimeStampgetCaptureTime () const
 
const utl::UTMPointgetCoordinates () const
 
const utl::UTMPointgetCoordinates (AltitudeType pAltitudeType) const
 
const FlightgetFlight () const
 
const utl::UTMPointgetUTMCoordinatesFromADS_B () const
 
bool HasGPSAltitude () const
 
bool operator< (const Ads_bEvent &pOther) const
 
bool ShouldBeFilteredOut () const
 
virtual ~Ads_bEvent ()
 

Static Public Attributes

static const unsigned int ADS_B_DATA_BIT_OFFSET = 8*4
 
static utl::TimeInterval MAX_TIME_SPAN_BETWEEN_ADS_B_EVENT_AND_DETECTOR_TIME = TimeInterval(60*60*s)
 

Private Member Functions

bool _decodeAds_bMessage ()
 
bool _decodeTC ()
 
 DISALLOW_COPY_AND_ASSIGN (Ads_bEvent)
 

Static Private Member Functions

static std::vector< bool > _binaryFromHexChar (const char &pHexChar)
 
static std::vector< bool > _binaryFromHexString (const std::string &pHexString)
 
static double _getAltitudeFromPressure (const atm::ProfileResult &pProfileResult, double pPressure, double pLowerHeight, double pUpperHeight, double pPressureTreshold, unsigned int pRecursionDepth, unsigned int pMaxRecursionDepth)
 
static double _getAltitudeFromPressure (const atm::ProfileResult &pProfileResult, double pPressure)
 
static int _intFromBoolVector (const std::vector< bool > &pVector)
 

Private Attributes

std::vector< bool > _ads_bMessageBinary_
 
AltitudeType _altitudeType_
 
utl::TimeStamp _captureTime_
 
utl::UTMPoint _coordinatesFromAds_b_
 
utl::UTMPoint_coordinatesGDASCorrectedPressureAltitude_
 
utl::UTMPoint_coordinatesGPSAltitude_
 
utl::UTMPoint_coordinatesManuallyCorrectedPressureAltitude_
 
utl::UTMPoint_coordinatesPressureAltitude_
 
Flight_flight_
 
double _GDAScorrectedPressureAltitude_
 
double _gpsAltitude_
 
double _manuallyCorrectedPressureAltitude_
 
double _pressureAltitude_
 
int _tc_
 

Detailed Description

Represents one line in an ADS-B Log-File

Definition at line 21 of file Ads_bEvent.h.

Member Enumeration Documentation

Enumerator
eGPSAltitude 
ePressureAltitude 
eGDASCorrectedPressureAltitude 
eManuallyCorrectedPressureAltitude 

Definition at line 24 of file Ads_bEvent.h.

Constructor & Destructor Documentation

Ads_bEvent::Ads_bEvent ( const utl::TimeStamp pCaptureTime,
const utl::UTMPoint pCoordinates,
const std::string &  pAds_bMessageAsHex,
Flight pFlight 
)
Ads_bEvent::~Ads_bEvent ( )
virtual

Member Function Documentation

vector< bool > Ads_bEvent::_binaryFromHexChar ( const char &  pHexChar)
staticprivate

Definition at line 147 of file Ads_bEvent.cc.

Referenced by _binaryFromHexString().

vector< bool > Ads_bEvent::_binaryFromHexString ( const std::string &  pHexString)
staticprivate

Definition at line 192 of file Ads_bEvent.cc.

References _binaryFromHexChar().

bool Ads_bEvent::_decodeAds_bMessage ( )
private

Definition at line 206 of file Ads_bEvent.cc.

References _decodeTC().

Referenced by Ads_bEvent().

bool Ads_bEvent::_decodeTC ( )
private

Definition at line 221 of file Ads_bEvent.cc.

References _ads_bMessageBinary_, _intFromBoolVector(), _tc_, and ADS_B_DATA_BIT_OFFSET.

Referenced by _decodeAds_bMessage().

double Ads_bEvent::_getAltitudeFromPressure ( const atm::ProfileResult pProfileResult,
double  pPressure,
double  pLowerHeight,
double  pUpperHeight,
double  pPressureTreshold,
unsigned int  pRecursionDepth,
unsigned int  pMaxRecursionDepth 
)
staticprivate

Definition at line 126 of file Ads_bEvent.cc.

References utl::abs(), and atm::ProfileResult::Y().

Referenced by _getAltitudeFromPressure(), and Ads_bEvent().

double Ads_bEvent::_getAltitudeFromPressure ( const atm::ProfileResult pProfileResult,
double  pPressure 
)
staticprivate

Definition at line 139 of file Ads_bEvent.cc.

References _getAltitudeFromPressure(), utl::bar, utl::m, and utl::milli.

int Ads_bEvent::_intFromBoolVector ( const std::vector< bool > &  pVector)
staticprivate

Definition at line 211 of file Ads_bEvent.cc.

Referenced by _decodeTC().

RdAirplane::Ads_bEvent::DISALLOW_COPY_AND_ASSIGN ( Ads_bEvent  )
private
double Ads_bEvent::getAltitude ( AltitudeType  pAltitudeType) const
AltitudeType RdAirplane::Ads_bEvent::getAltitudeType ( ) const
inline

Definition at line 61 of file Ads_bEvent.h.

References _altitudeType_.

Referenced by RdAirplane::RdTransformAds_bLogFile::Init().

const utl::TimeStamp& RdAirplane::Ads_bEvent::getCaptureTime ( ) const
inline
const UTMPoint & Ads_bEvent::getCoordinates ( ) const

Definition at line 83 of file Ads_bEvent.cc.

References _altitudeType_.

Referenced by RdAirplane::RdTransformAds_bLogFile::Init().

const UTMPoint & Ads_bEvent::getCoordinates ( AltitudeType  pAltitudeType) const
const Flight& RdAirplane::Ads_bEvent::getFlight ( ) const
inline

Definition at line 35 of file Ads_bEvent.h.

References _flight_.

const utl::UTMPoint& RdAirplane::Ads_bEvent::getUTMCoordinatesFromADS_B ( ) const
inline

Definition at line 43 of file Ads_bEvent.h.

References _coordinatesFromAds_b_.

bool Ads_bEvent::HasGPSAltitude ( ) const

Definition at line 229 of file Ads_bEvent.cc.

References _tc_.

Referenced by Ads_bEvent().

bool RdAirplane::Ads_bEvent::operator< ( const Ads_bEvent pOther) const
inline

Definition at line 47 of file Ads_bEvent.h.

References getCaptureTime().

bool Ads_bEvent::ShouldBeFilteredOut ( ) const

Definition at line 202 of file Ads_bEvent.cc.

Member Data Documentation

std::vector<bool> RdAirplane::Ads_bEvent::_ads_bMessageBinary_
private

Definition at line 80 of file Ads_bEvent.h.

Referenced by _decodeTC().

AltitudeType RdAirplane::Ads_bEvent::_altitudeType_
private

Definition at line 84 of file Ads_bEvent.h.

Referenced by Ads_bEvent(), getAltitude(), getAltitudeType(), and getCoordinates().

utl::TimeStamp RdAirplane::Ads_bEvent::_captureTime_
private

Definition at line 67 of file Ads_bEvent.h.

Referenced by Ads_bEvent(), and getCaptureTime().

utl::UTMPoint RdAirplane::Ads_bEvent::_coordinatesFromAds_b_
private

Definition at line 69 of file Ads_bEvent.h.

Referenced by Ads_bEvent(), and getUTMCoordinatesFromADS_B().

utl::UTMPoint* RdAirplane::Ads_bEvent::_coordinatesGDASCorrectedPressureAltitude_
private

Definition at line 76 of file Ads_bEvent.h.

Referenced by Ads_bEvent(), getCoordinates(), and ~Ads_bEvent().

utl::UTMPoint* RdAirplane::Ads_bEvent::_coordinatesGPSAltitude_
private

Definition at line 78 of file Ads_bEvent.h.

Referenced by Ads_bEvent(), getCoordinates(), and ~Ads_bEvent().

utl::UTMPoint* RdAirplane::Ads_bEvent::_coordinatesManuallyCorrectedPressureAltitude_
private

Definition at line 77 of file Ads_bEvent.h.

Referenced by Ads_bEvent(), getCoordinates(), and ~Ads_bEvent().

utl::UTMPoint* RdAirplane::Ads_bEvent::_coordinatesPressureAltitude_
private

Definition at line 75 of file Ads_bEvent.h.

Referenced by Ads_bEvent(), getCoordinates(), and ~Ads_bEvent().

Flight* RdAirplane::Ads_bEvent::_flight_
private

Definition at line 82 of file Ads_bEvent.h.

Referenced by getFlight().

double RdAirplane::Ads_bEvent::_GDAScorrectedPressureAltitude_
private

Definition at line 72 of file Ads_bEvent.h.

Referenced by Ads_bEvent(), and getAltitude().

double RdAirplane::Ads_bEvent::_gpsAltitude_
private

Definition at line 73 of file Ads_bEvent.h.

Referenced by Ads_bEvent(), and getAltitude().

double RdAirplane::Ads_bEvent::_manuallyCorrectedPressureAltitude_
private

Definition at line 71 of file Ads_bEvent.h.

Referenced by Ads_bEvent(), and getAltitude().

double RdAirplane::Ads_bEvent::_pressureAltitude_
private

Definition at line 70 of file Ads_bEvent.h.

Referenced by Ads_bEvent(), and getAltitude().

int RdAirplane::Ads_bEvent::_tc_
private

Definition at line 81 of file Ads_bEvent.h.

Referenced by _decodeTC(), and HasGPSAltitude().

const unsigned int RdAirplane::Ads_bEvent::ADS_B_DATA_BIT_OFFSET = 8*4
static

Definition at line 31 of file Ads_bEvent.h.

Referenced by _decodeTC().

TimeInterval Ads_bEvent::MAX_TIME_SPAN_BETWEEN_ADS_B_EVENT_AND_DETECTOR_TIME = TimeInterval(60*60*s)
static

Definition at line 30 of file Ads_bEvent.h.

Referenced by Ads_bEvent().


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

, generated on Tue Sep 26 2023.