DUNE: Uniform Navigational Environment  2.5.0-rc1
Power::LEDCON::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onUpdateParameters (void)
 
void consume (const IMC::Heartbeat *msg)
 
void consume (const IMC::PowerOperation *msg)
 
void sendPowerChannelControl (const std::string &name, bool value)
 
void setActiveParameter (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

bool m_activating
 
bool m_deactivating
 
Counter< double > m_act_timer
 
bool m_slave_alive
 
unsigned m_slave_id
 
Arguments m_args
 

Constructor & Destructor Documentation

Power::LEDCON::Task::Task ( const std::string &  name,
Tasks::Context &  ctx 
)
inline

Member Function Documentation

void Power::LEDCON::Task::checkDeactivation ( void  )
inline
void Power::LEDCON::Task::consume ( const IMC::Heartbeat *  msg)
inline
void Power::LEDCON::Task::consume ( const IMC::PowerOperation *  msg)
inline

References m_slave_id.

void Power::LEDCON::Task::onActivation ( void  )
inline

References m_activating.

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

Member Data Documentation

Counter<double> Power::LEDCON::Task::m_act_timer
bool Power::LEDCON::Task::m_activating

True if the task is activating.

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

bool Power::LEDCON::Task::m_deactivating

True if the task is deactivating.

Referenced by checkDeactivation(), onDeactivation(), and onRequestDeactivation().

bool Power::LEDCON::Task::m_slave_alive

True if slave CPU is alive.

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

unsigned Power::LEDCON::Task::m_slave_id

System id of the slave DUNE instance.

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

Collaboration diagram for Power::LEDCON::Task:
Collaboration graph