DUNE: Uniform Navigational Environment  2016.05.0
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::checkDeactivation ( void  )
inline
void Supervisors::SlaveCPU::Task::consume ( const IMC::Heartbeat *  msg)
inline

References m_slave_alive, and m_slave_id.

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
Arguments Supervisors::SlaveCPU::Task::m_args
bool Supervisors::SlaveCPU::Task::m_slave_alive

True if slave CPU is alive.

Referenced by checkActivation(), consume(), and onRequestActivation().

unsigned Supervisors::SlaveCPU::Task::m_slave_id

System id of the slave DUNE instance.

Referenced by consume(), onRequestDeactivation(), and onUpdateParameters().

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