DUNE: Uniform Navigational Environment  2020.01.0
Supervisors::Power::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onResourceInitialization (void)
 
void consume (const IMC::PowerChannelControl *msg)
 
void consume (const IMC::PowerOperation *msg)
 
void powerDown (void)
 
void powerDownAbort (void)
 
bool powerDownCommand (void)
 
bool powerDownAbortCommand (void)
 
void notifySlaves (IMC::PowerOperation::OperationEnum op)
 
void controlSystemPower (IMC::PowerChannelControl::OperationEnum op)
 
bool powerDownInProgress (void)
 
bool powerDownAborted (void)
 
void onMain (void)
 

Public Attributes

std::set< uint16_t > m_notified_slaves
 
int m_power_op
 
Arguments m_args
 

Constructor & Destructor Documentation

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

Member Function Documentation

void Supervisors::Power::Task::consume ( const IMC::PowerChannelControl *  msg)
inline
void Supervisors::Power::Task::consume ( const IMC::PowerOperation *  msg)
inline
void Supervisors::Power::Task::controlSystemPower ( IMC::PowerChannelControl::OperationEnum  op)
inline
void Supervisors::Power::Task::notifySlaves ( IMC::PowerOperation::OperationEnum  op)
inline
void Supervisors::Power::Task::onMain ( void  )
inline
void Supervisors::Power::Task::onResourceInitialization ( void  )
inline
void Supervisors::Power::Task::powerDown ( void  )
inline
void Supervisors::Power::Task::powerDownAbort ( void  )
inline
bool Supervisors::Power::Task::powerDownAbortCommand ( void  )
inline
bool Supervisors::Power::Task::powerDownAborted ( void  )
inline
bool Supervisors::Power::Task::powerDownCommand ( void  )
inline
bool Supervisors::Power::Task::powerDownInProgress ( void  )
inline

Member Data Documentation

Arguments Supervisors::Power::Task::m_args

Task arguments.

std::set<uint16_t> Supervisors::Power::Task::m_notified_slaves

Set of slave system not yet powered-off.

int Supervisors::Power::Task::m_power_op

Last power operation.

Collaboration diagram for Supervisors::Power::Task:
Collaboration graph