DUNE: Uniform Navigational Environment  2016.05.0
UserInterfaces::LEDs::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
 ~Task (void)
 
void onResourceRelease (void)
 
void onResourceAcquisition (void)
 
void onEntityResolution (void)
 
void onResourceInitialization (void)
 
void onUpdateParameters (void)
 
void validatePattern (Patterns type, const std::string &label)
 
void consume (const IMC::EntityState *msg)
 
void consume (const IMC::PowerOperation *msg)
 
void consume (const IMC::VehicleState *msg)
 
void setLEDs (bool state)
 
void initializeLEDs (void)
 
void switchPattern (void)
 
void onMain (void)
 

Public Attributes

std::vector< AbstractOutput * > m_outs
 
std::vector< unsigned > m_patterns [PAT_COUNT]
 
std::vector< unsigned > * m_current
 
unsigned m_cursor
 
uint8_t m_current_id
 
int m_next_id
 
std::set< unsigned > m_critical_eids
 
bool m_critical_error
 
Arguments m_args
 

Constructor & Destructor Documentation

UserInterfaces::LEDs::Task::~Task ( void  )
inline

References onResourceRelease().

Member Function Documentation

void UserInterfaces::LEDs::Task::consume ( const IMC::EntityState *  msg)
inline
void UserInterfaces::LEDs::Task::consume ( const IMC::PowerOperation *  msg)
inline

References m_next_id, and switchPattern().

void UserInterfaces::LEDs::Task::consume ( const IMC::VehicleState *  msg)
inline
void UserInterfaces::LEDs::Task::initializeLEDs ( void  )
inline
void UserInterfaces::LEDs::Task::onEntityResolution ( void  )
inline
void UserInterfaces::LEDs::Task::onMain ( void  )
inline
void UserInterfaces::LEDs::Task::onResourceInitialization ( void  )
inline
void UserInterfaces::LEDs::Task::onResourceRelease ( void  )
inline

References m_outs.

Referenced by ~Task().

void UserInterfaces::LEDs::Task::onUpdateParameters ( void  )
inline

References m_current, m_current_id, and m_patterns.

void UserInterfaces::LEDs::Task::setLEDs ( bool  state)
inline

References m_outs.

Referenced by initializeLEDs(), and onMain().

void UserInterfaces::LEDs::Task::switchPattern ( void  )
inline
void UserInterfaces::LEDs::Task::validatePattern ( Patterns  type,
const std::string &  label 
)
inline

References m_outs, and m_patterns.

Member Data Documentation

Arguments UserInterfaces::LEDs::Task::m_args
std::set<unsigned> UserInterfaces::LEDs::Task::m_critical_eids

Critical entities.

Referenced by consume(), and onEntityResolution().

bool UserInterfaces::LEDs::Task::m_critical_error

Referenced by consume().

std::vector<unsigned>* UserInterfaces::LEDs::Task::m_current
uint8_t UserInterfaces::LEDs::Task::m_current_id
unsigned UserInterfaces::LEDs::Task::m_cursor

Referenced by onMain().

int UserInterfaces::LEDs::Task::m_next_id
std::vector<AbstractOutput*> UserInterfaces::LEDs::Task::m_outs
std::vector<unsigned> UserInterfaces::LEDs::Task::m_patterns[PAT_COUNT]
Collaboration diagram for UserInterfaces::LEDs::Task:
Collaboration graph