DUNE: Uniform Navigational Environment  2016.03.0
Sensors::Imagenex872::Task Struct Reference

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)
 
unsigned getIndex (unsigned value, const unsigned *table, unsigned table_size)
 
void setFrequency (unsigned value)
 
void setRange (unsigned value)
 
void setDataGain (unsigned value)
 
void setBalanceGain (unsigned value)
 
void ping (Side side)
 
void pingBoth (void)
 
void task (void)
 

Public Attributes

TCPSocket * m_sock
 
uint8_t m_sdata [c_sdata_size]
 
uint8_t m_rdata_hdr [c_rdata_hdr_size]
 
uint8_t m_rdata_ftr [c_rdata_ftr_size]
 
IMC::SonarData m_ping
 
Arguments m_args
 

Constructor & Destructor Documentation

Member Function Documentation

unsigned Sensors::Imagenex872::Task::getIndex ( unsigned  value,
const unsigned *  table,
unsigned  table_size 
)
inline

Referenced by setFrequency(), and setRange().

void Sensors::Imagenex872::Task::onActivation ( void  )
inline
void Sensors::Imagenex872::Task::onDeactivation ( void  )
inline
void Sensors::Imagenex872::Task::onResourceAcquisition ( void  )
inline

References m_sock.

void Sensors::Imagenex872::Task::onResourceInitialization ( void  )
inline
void Sensors::Imagenex872::Task::onResourceRelease ( void  )
inline

References m_sock.

void Sensors::Imagenex872::Task::ping ( Side  side)
inline
void Sensors::Imagenex872::Task::pingBoth ( void  )
inline
void Sensors::Imagenex872::Task::setBalanceGain ( unsigned  value)
inline
void Sensors::Imagenex872::Task::setDataGain ( unsigned  value)
inline
void Sensors::Imagenex872::Task::setFrequency ( unsigned  value)
inline
void Sensors::Imagenex872::Task::setRange ( unsigned  value)
inline
void Sensors::Imagenex872::Task::task ( void  )
inline

References m_ping, and pingBoth().

Member Data Documentation

Arguments Sensors::Imagenex872::Task::m_args
IMC::SonarData Sensors::Imagenex872::Task::m_ping

Referenced by ping(), setFrequency(), setRange(), Task(), and task().

uint8_t Sensors::Imagenex872::Task::m_rdata_ftr[c_rdata_ftr_size]

Referenced by ping().

uint8_t Sensors::Imagenex872::Task::m_rdata_hdr[c_rdata_hdr_size]

Referenced by ping().

uint8_t Sensors::Imagenex872::Task::m_sdata[c_sdata_size]
TCPSocket* Sensors::Imagenex872::Task::m_sock
Collaboration diagram for Sensors::Imagenex872::Task:
Collaboration graph