DUNE: Uniform Navigational Environment  2016.09.0
Power::DOAMv2::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 setActiveParameter (bool value)
 
void consume (const IMC::PowerOperation *msg)
 
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
 
bool m_slave_alive
 
unsigned m_slave_id
 

Constructor & Destructor Documentation

Member Function Documentation

void Power::DOAMv2::Task::checkActivation ( void  )
inline
void Power::DOAMv2::Task::checkDeactivation ( void  )
inline
void Power::DOAMv2::Task::consume ( const IMC::Heartbeat *  msg)
inline

References m_slave_alive, and m_slave_id.

void Power::DOAMv2::Task::consume ( const IMC::PowerOperation *  msg)
inline

References m_slave_id.

void Power::DOAMv2::Task::onActivation ( void  )
inline
void Power::DOAMv2::Task::onMain ( void  )
inline
void Power::DOAMv2::Task::onRequestDeactivation ( void  )
inline
void Power::DOAMv2::Task::onUpdateParameters ( void  )
inline
void Power::DOAMv2::Task::sendPowerChannelControl ( const std::string &  name,
bool  value 
)
inline
void Power::DOAMv2::Task::setActiveParameter ( bool  value)
inline

Member Data Documentation

Counter<double> Power::DOAMv2::Task::m_act_timer
Arguments Power::DOAMv2::Task::m_args
bool Power::DOAMv2::Task::m_slave_alive

True if slave CPU is alive.

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

unsigned Power::DOAMv2::Task::m_slave_id

System id of the slave DUNE instance.

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

Collaboration diagram for Power::DOAMv2::Task:
Collaboration graph