DUNE: Uniform Navigational Environment  2016.09.0
Sensors::SCH311X::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onUpdateParameters (void)
 
void onResourceInitialization (void)
 
void onEntityReservation (void)
 
double readValue (const char *file)
 
void task (void)
 

Public Attributes

Path m_paths [c_max_temps]
 
IMC::Temperature m_temps [c_max_temps]
 
Arguments m_args
 

Constructor & Destructor Documentation

Sensors::SCH311X::Task::Task ( const std::string &  name,
Tasks::Context &  ctx 
)
inline

Member Function Documentation

void Sensors::SCH311X::Task::onEntityReservation ( void  )
inline
void Sensors::SCH311X::Task::onResourceInitialization ( void  )
inline

References m_paths.

void Sensors::SCH311X::Task::onUpdateParameters ( void  )
inline
double Sensors::SCH311X::Task::readValue ( const char *  file)
inline

Read value from file.

Parameters
[in]filefile descriptor.
Returns
value from descriptor.

Referenced by task().

void Sensors::SCH311X::Task::task ( void  )
inline

References m_paths, m_temps, and readValue().

Member Data Documentation

Arguments Sensors::SCH311X::Task::m_args

Task arguments.

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

Path Sensors::SCH311X::Task::m_paths[c_max_temps]

Temperature file paths.

Referenced by onResourceInitialization(), onUpdateParameters(), and task().

IMC::Temperature Sensors::SCH311X::Task::m_temps[c_max_temps]

Temperature messages.

Referenced by onEntityReservation(), and task().

Collaboration diagram for Sensors::SCH311X::Task:
Collaboration graph