VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends
DtAdsb::DtPathPoint Class Reference

Class definition for one dynamic point of a track.

Public Member Functions

 DtPathPoint ()
 
 ~DtPathPoint ()
 
bool hasSpeed () const
 
void setHasSpeed (bool v)
 
bool hasVerticalSpeed () const
 
void setHasVerticalSpeed (bool v)
 
bool hasHeading () const
 
void setHasHeading (bool v)
 
bool hasAltitude () const
 
void setHasAltitude (bool v)
 
bool isOnGround () const
 
void setIsOnGround (bool v)
 

Public Attributes

DtTime myTimeStamp
 
DtFixedPointAngle32 myLatitude
 
DtFixedPointAngle32 myLongitude
 
float myAltitudeBarometric
 
float mySpeed
 
float myVerticalSpeed
 
float myHeading
 
std::string myCallSign
 
std::string myFlightNumber
 
DtInt16 mySquawkCode
 

Protected Member Functions

void setBit (int position, bool value)
 
bool getBit (int position) const
 

Protected Attributes

DtU8 myBitfield
 

Friends

const int DtBufferSerialize::getSize (const DtAdsb::DtPathPoint &point)
 
charDtBufferSerialize::encode (const DtAdsb::DtPathPoint &val, char *buffer)
 
const charDtBufferSerialize::decode (DtAdsb::DtPathPoint &val, const char *buffer)
 

Constructor & Destructor Documentation

DtAdsb::DtPathPoint::DtPathPoint ( )
DtAdsb::DtPathPoint::~DtPathPoint ( )

Member Function Documentation

bool DtAdsb::DtPathPoint::hasSpeed ( ) const
inline

Indicator for whether the above data has been specified in the data.

void DtAdsb::DtPathPoint::setHasSpeed ( bool  v)
inline
bool DtAdsb::DtPathPoint::hasVerticalSpeed ( ) const
inline
void DtAdsb::DtPathPoint::setHasVerticalSpeed ( bool  v)
inline
bool DtAdsb::DtPathPoint::hasHeading ( ) const
inline
void DtAdsb::DtPathPoint::setHasHeading ( bool  v)
inline
bool DtAdsb::DtPathPoint::hasAltitude ( ) const
inline
void DtAdsb::DtPathPoint::setHasAltitude ( bool  v)
inline
bool DtAdsb::DtPathPoint::isOnGround ( ) const
inline
void DtAdsb::DtPathPoint::setIsOnGround ( bool  v)
inline
void DtAdsb::DtPathPoint::setBit ( int  position,
bool  value 
)
protected
bool DtAdsb::DtPathPoint::getBit ( int  position) const
protected

Friends And Related Function Documentation

const int DtBufferSerialize::getSize ( const DtAdsb::DtPathPoint point)
friend
char* DtBufferSerialize::encode ( const DtAdsb::DtPathPoint val,
char buffer 
)
friend
const char* DtBufferSerialize::decode ( DtAdsb::DtPathPoint val,
const char buffer 
)
friend

Member Data Documentation

DtTime DtAdsb::DtPathPoint::myTimeStamp
DtFixedPointAngle32 DtAdsb::DtPathPoint::myLatitude

The representation of lat-lon in the ADSB data is 10e-4 minutes, or about 27-28 bits. Float is too low precision for this data.

DtFixedPointAngle32 DtAdsb::DtPathPoint::myLongitude

radians

float DtAdsb::DtPathPoint::myAltitudeBarometric

radians

float DtAdsb::DtPathPoint::mySpeed

meters

float DtAdsb::DtPathPoint::myVerticalSpeed

mps

float DtAdsb::DtPathPoint::myHeading

mps

std::string DtAdsb::DtPathPoint::myCallSign

radians, 0 - 2pi. Ignore if < 0.

These might change during the day as an aircraft lands at an airport and becomes a new flight to a new city

std::string DtAdsb::DtPathPoint::myFlightNumber
DtInt16 DtAdsb::DtPathPoint::mySquawkCode

This IFF code could change during a flight.

DtU8 DtAdsb::DtPathPoint::myBitfield
protected

Data storage for bits set by above accessors. Use this instead of a series of bools to compact the data both in memory and on disk.


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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)