DUNE: Uniform Navigational Environment  2019.02.1
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

Member Function Documentation

void UserInterfaces::LEDs::Task::consume ( const IMC::EntityState *  msg)
inline
void UserInterfaces::LEDs::Task::consume ( const IMC::PowerOperation *  msg)
inline
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
void UserInterfaces::LEDs::Task::onUpdateParameters ( void  )
inline
void UserInterfaces::LEDs::Task::setLEDs ( bool  state)
inline
void UserInterfaces::LEDs::Task::switchPattern ( void  )
inline
void UserInterfaces::LEDs::Task::validatePattern ( Patterns  type,
const std::string &  label 
)
inline

Member Data Documentation

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

Critical entities.

bool UserInterfaces::LEDs::Task::m_critical_error
std::vector<unsigned>* UserInterfaces::LEDs::Task::m_current
uint8_t UserInterfaces::LEDs::Task::m_current_id
unsigned UserInterfaces::LEDs::Task::m_cursor
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