DUNE: Uniform Navigational Environment  2019.02.1
Supervisors::SlaveCPU::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onUpdateParameters (void)
 
void consume (const IMC::Heartbeat *msg)
 
void sendPowerChannelControl (const std::string &name, bool value)
 
void onRequestActivation (void)
 
void checkActivation (void)
 
void onActivation (void)
 
void onRequestDeactivation (void)
 
void checkDeactivation (void)
 
void onDeactivation (void)
 
void onMain (void)
 

Public Attributes

Arguments m_args
 
Counter< double > m_act_timer
 
unsigned m_slave_id
 
bool m_slave_alive
 

Constructor & Destructor Documentation

Supervisors::SlaveCPU::Task::Task ( const std::string &  name,
Tasks::Context &  ctx 
)
inline

Member Function Documentation

void Supervisors::SlaveCPU::Task::checkActivation ( void  )
inline
void Supervisors::SlaveCPU::Task::checkDeactivation ( void  )
inline
void Supervisors::SlaveCPU::Task::consume ( const IMC::Heartbeat *  msg)
inline
void Supervisors::SlaveCPU::Task::onActivation ( void  )
inline
void Supervisors::SlaveCPU::Task::onDeactivation ( void  )
inline
void Supervisors::SlaveCPU::Task::onMain ( void  )
inline
void Supervisors::SlaveCPU::Task::onRequestActivation ( void  )
inline
void Supervisors::SlaveCPU::Task::onRequestDeactivation ( void  )
inline
void Supervisors::SlaveCPU::Task::onUpdateParameters ( void  )
inline
void Supervisors::SlaveCPU::Task::sendPowerChannelControl ( const std::string &  name,
bool  value 
)
inline

Member Data Documentation

Counter<double> Supervisors::SlaveCPU::Task::m_act_timer

Activation timer.

Arguments Supervisors::SlaveCPU::Task::m_args

Task arguments.

bool Supervisors::SlaveCPU::Task::m_slave_alive

True if slave CPU is alive.

unsigned Supervisors::SlaveCPU::Task::m_slave_id

System id of the slave DUNE instance.

Collaboration diagram for Supervisors::SlaveCPU::Task:
Collaboration graph