DUNE: Uniform Navigational Environment  2016.09.0
Sensors::Imagenex852::Task Struct Reference

Detailed Description

Task.

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onUpdateParameters (void)
 
void onResourceAcquisition (void)
 
void onResourceRelease (void)
 
void onResourceInitialization (void)
 
void onActivation (void)
 
void onDeactivation (void)
 
void consume (const IMC::UamTxStatus *msg)
 
void consume (const IMC::SoundSpeed *msg)
 
void consume (const IMC::VehicleMedium *msg)
 
void onMain (void)
 
void filterRange (DUNE::IMC::Distance &dist, DUNE::IMC::SonarData &profile)
 

Public Attributes

SerialPort * m_uart
 
Trigger m_trigger
 
IMC::Distance m_dist
 
IMC::SonarData m_profile
 
Arguments m_args
 
Counter< double > m_wdog
 
double m_sound_speed
 
SwitchData m_switch
 
Parser m_parser
 
PatternFilterm_pfilt
 
Monitors::MediumHandler m_hand
 
bool m_uam_tx_ip
 

Constructor & Destructor Documentation

Member Function Documentation

void Sensors::Imagenex852::Task::consume ( const IMC::UamTxStatus *  msg)
inline

References m_uam_tx_ip.

void Sensors::Imagenex852::Task::consume ( const IMC::SoundSpeed *  msg)
inline

References m_sound_speed.

void Sensors::Imagenex852::Task::consume ( const IMC::VehicleMedium *  msg)
inline
void Sensors::Imagenex852::Task::filterRange ( DUNE::IMC::Distance dist,
DUNE::IMC::SonarData profile 
)
inline
void Sensors::Imagenex852::Task::onActivation ( void  )
inline
void Sensors::Imagenex852::Task::onDeactivation ( void  )
inline
void Sensors::Imagenex852::Task::onResourceRelease ( void  )
inline

Release resources.

References m_pfilt, m_trigger, and m_uart.

Member Data Documentation

Arguments Sensors::Imagenex852::Task::m_args
IMC::Distance Sensors::Imagenex852::Task::m_dist

Distance message.

Referenced by onMain(), onUpdateParameters(), and Task().

Monitors::MediumHandler Sensors::Imagenex852::Task::m_hand

Medium handler.

Referenced by consume(), onDeactivation(), and onMain().

Parser Sensors::Imagenex852::Task::m_parser

Return data parser.

Referenced by onMain().

PatternFilter* Sensors::Imagenex852::Task::m_pfilt

Pattern filter.

Referenced by onMain(), onResourceAcquisition(), and onResourceRelease().

IMC::SonarData Sensors::Imagenex852::Task::m_profile

Profile message.

Referenced by onMain(), onUpdateParameters(), and Task().

double Sensors::Imagenex852::Task::m_sound_speed

Last valid sound speed value.

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

SwitchData Sensors::Imagenex852::Task::m_switch
Trigger Sensors::Imagenex852::Task::m_trigger
bool Sensors::Imagenex852::Task::m_uam_tx_ip

Underwater acoustic modem transmission in progress.

Referenced by consume(), and onMain().

SerialPort* Sensors::Imagenex852::Task::m_uart
Counter<double> Sensors::Imagenex852::Task::m_wdog

Watchdog.

Referenced by onActivation(), onMain(), and onResourceAcquisition().

Collaboration diagram for Sensors::Imagenex852::Task:
Collaboration graph