DUNE: Uniform Navigational Environment  2016.09.0
UserInterfaces::MantaPanel::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onUpdateParameters (void)
 
void onResourceInitialization (void)
 
void reset (void)
 
std::string center (const std::string &var)
 
std::string fill (const std::string &var)
 
void requestAbort (const std::string &sys)
 
void requestPing (const std::string &sys)
 
void consume (const IMC::Abort *msg)
 
void consume (const IMC::AcousticSystemsQuery *msg)
 
void consume (const IMC::PowerOperation *msg)
 
void consume (const IMC::AcousticOperation *msg)
 
void consume (const IMC::ButtonEvent *msg)
 
void selectSystem (bool increment=true)
 
void pingSystem (const std::string &sys)
 
void abortSystem (const std::string &sys)
 
void executeOnPowerDown (void)
 
void checkTimeout (void)
 
void updateProgressBar (void)
 
void onMain (void)
 

Public Attributes

Arguments m_args
 
IMC::LcdControl m_lcd
 
std::set< std::string > m_sys
 
std::set< std::string >
::const_iterator 
m_sys_itr
 
IMC::AcousticSystems m_acoustic_systems
 
Mode m_mode
 
bool m_power_down
 
bool m_power_down_now
 
Commandm_cmd
 
double m_last_acop
 
unsigned m_prog_bar
 

Constructor & Destructor Documentation

Member Function Documentation

void UserInterfaces::MantaPanel::Task::abortSystem ( const std::string &  sys)
inline
std::string UserInterfaces::MantaPanel::Task::center ( const std::string &  var)
inline
void UserInterfaces::MantaPanel::Task::checkTimeout ( void  )
inline
void UserInterfaces::MantaPanel::Task::consume ( const IMC::Abort *  msg)
inline

References requestAbort().

void UserInterfaces::MantaPanel::Task::consume ( const IMC::AcousticSystemsQuery *  msg)
inline

References m_acoustic_systems.

void UserInterfaces::MantaPanel::Task::consume ( const IMC::PowerOperation *  msg)
inline
void UserInterfaces::MantaPanel::Task::consume ( const IMC::AcousticOperation *  msg)
inline
std::string UserInterfaces::MantaPanel::Task::fill ( const std::string &  var)
inline
void UserInterfaces::MantaPanel::Task::onMain ( void  )
inline
void UserInterfaces::MantaPanel::Task::onResourceInitialization ( void  )
inline
void UserInterfaces::MantaPanel::Task::pingSystem ( const std::string &  sys)
inline
void UserInterfaces::MantaPanel::Task::requestAbort ( const std::string &  sys)
inline

Referenced by consume().

void UserInterfaces::MantaPanel::Task::requestPing ( const std::string &  sys)
inline

Referenced by consume().

void UserInterfaces::MantaPanel::Task::reset ( void  )
inline
void UserInterfaces::MantaPanel::Task::selectSystem ( bool  increment = true)
inline
void UserInterfaces::MantaPanel::Task::updateProgressBar ( void  )
inline

Member Data Documentation

IMC::AcousticSystems UserInterfaces::MantaPanel::Task::m_acoustic_systems

Message with list of supported systems.

Referenced by consume(), and onUpdateParameters().

Arguments UserInterfaces::MantaPanel::Task::m_args
Command* UserInterfaces::MantaPanel::Task::m_cmd

Command.

Referenced by executeOnPowerDown().

double UserInterfaces::MantaPanel::Task::m_last_acop

Time of last acoustic operation dispatch.

Referenced by abortSystem(), checkTimeout(), pingSystem(), reset(), and updateProgressBar().

IMC::LcdControl UserInterfaces::MantaPanel::Task::m_lcd
Mode UserInterfaces::MantaPanel::Task::m_mode
bool UserInterfaces::MantaPanel::Task::m_power_down

True if powering down.

Referenced by consume(), and executeOnPowerDown().

bool UserInterfaces::MantaPanel::Task::m_power_down_now

True if powering down immediately.

Referenced by consume(), and executeOnPowerDown().

unsigned UserInterfaces::MantaPanel::Task::m_prog_bar

Progress bar.

std::set<std::string> UserInterfaces::MantaPanel::Task::m_sys

Supported system names.

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

std::set<std::string>::const_iterator UserInterfaces::MantaPanel::Task::m_sys_itr

System names iterator.

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

Collaboration diagram for UserInterfaces::MantaPanel::Task:
Collaboration graph