DUNE: Uniform Navigational Environment  2.5.0
Simulators::Target::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onResourceAcquisition (void)
 
void onResourceRelease (void)
 
void onUpdateParameters (void)
 
void sendTarget (void)
 
void task (void)
 

Public Attributes

Arguments m_args
 
Random::Generatorm_prng
 
fp32_t m_cog
 
fp32_t m_sog
 
fp64_t m_lat
 
fp64_t m_lon
 

Constructor & Destructor Documentation

Member Function Documentation

void Simulators::Target::Task::onResourceAcquisition ( void  )
inline

Acquire resources.

References m_prng.

void Simulators::Target::Task::onResourceRelease ( void  )
inline

Release resources.

References m_prng.

void Simulators::Target::Task::onUpdateParameters ( void  )
inline
void Simulators::Target::Task::task ( void  )
inline

References sendTarget().

Member Data Documentation

Arguments Simulators::Target::Task::m_args

Task arguments.

Referenced by onUpdateParameters(), sendTarget(), and Task().

fp32_t Simulators::Target::Task::m_cog

Target Course Over Ground.

Referenced by sendTarget().

fp64_t Simulators::Target::Task::m_lat

Target Latitude.

Referenced by onUpdateParameters(), and sendTarget().

fp64_t Simulators::Target::Task::m_lon

Target Longitude.

Referenced by onUpdateParameters(), and sendTarget().

Random::Generator* Simulators::Target::Task::m_prng

PRNG handle.

Referenced by onResourceAcquisition(), onResourceRelease(), and sendTarget().

fp32_t Simulators::Target::Task::m_sog

Target Speed Over Ground.

Referenced by sendTarget().

Collaboration diagram for Simulators::Target::Task:
Collaboration graph