DUNE: Uniform Navigational Environment  2019.02.1
Transports::DataStore::DataSample Class Reference

Detailed Description

Class used to store a single sample.

All samples have a location, timestamp, priority and a message (IMC).

Public Member Functions

 DataSample (void)
 
 ~DataSample (void)
 
int serializationSize (void)
 

Public Attributes

double latDegs
 
double lonDegs
 
double zMeters
 
double timestamp
 
int priority
 
int source
 
IMC::Message * sample
 

Constructor & Destructor Documentation

Transports::DataStore::DataSample::DataSample ( void  )
inline
Transports::DataStore::DataSample::~DataSample ( void  )
inline

References sample.

Member Function Documentation

int Transports::DataStore::DataSample::serializationSize ( void  )
inline

Member Data Documentation

double Transports::DataStore::DataSample::latDegs

Sample global coordinates.

Referenced by Transports::DataStore::Task::consume(), and Transports::DataStore::parse().

double Transports::DataStore::DataSample::lonDegs
int Transports::DataStore::DataSample::priority

Priority of the sample (higher priority samples are transmitted first)

Referenced by Transports::DataStore::Task::consume(), Transports::DataStore::CompareSamples::operator()(), and Transports::DataStore::parse().

IMC::Message* Transports::DataStore::DataSample::sample
int Transports::DataStore::DataSample::source

The system that generated this sample.

Referenced by Transports::DataStore::Task::consume(), and Transports::DataStore::parse().

double Transports::DataStore::DataSample::zMeters
Collaboration diagram for Transports::DataStore::DataSample:
Collaboration graph