DUNE: Uniform Navigational Environment  2019.02.1
Sensors::SonTekArgonaut::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
 ~Task (void)
 
void onUpdateParameters (void)
 
void onEntityReservation (void)
 
void onResourceAcquisition (void)
 
void onResourceRelease (void)
 
bool read (const char *str, double timeout=1.0)
 
bool sendCommand (const char *str, const char *reply, double timeout=2.0)
 
void onResourceInitialization (void)
 
void readSample (void)
 
void onMain (void)
 

Public Attributes

SerialPort * m_uart
 
Navigation::BeamFilter * m_filter
 
char m_buffer [512]
 
IMC::Temperature m_temp
 
IMC::GroundVelocity m_gvel
 
IMC::WaterVelocity m_wvel
 
IMC::Distance m_dist [c_beam_count+1]
 
Counter< double > m_wdog
 
Arguments m_args
 

Constructor & Destructor Documentation

Sensors::SonTekArgonaut::Task::~Task ( void  )
inline

Member Function Documentation

void Sensors::SonTekArgonaut::Task::onEntityReservation ( void  )
inline
void Sensors::SonTekArgonaut::Task::onMain ( void  )
inline
void Sensors::SonTekArgonaut::Task::onResourceAcquisition ( void  )
inline
void Sensors::SonTekArgonaut::Task::onResourceInitialization ( void  )
inline
void Sensors::SonTekArgonaut::Task::onResourceRelease ( void  )
inline
void Sensors::SonTekArgonaut::Task::onUpdateParameters ( void  )
inline
bool Sensors::SonTekArgonaut::Task::read ( const char *  str,
double  timeout = 1.0 
)
inline
void Sensors::SonTekArgonaut::Task::readSample ( void  )
inline
bool Sensors::SonTekArgonaut::Task::sendCommand ( const char *  str,
const char *  reply,
double  timeout = 2.0 
)
inline

Member Data Documentation

Arguments Sensors::SonTekArgonaut::Task::m_args

Task arguments.

char Sensors::SonTekArgonaut::Task::m_buffer[512]

Internal buffer.

IMC::Distance Sensors::SonTekArgonaut::Task::m_dist[c_beam_count+1]

Distance.

Navigation::BeamFilter* Sensors::SonTekArgonaut::Task::m_filter

Beam Filter.

IMC::GroundVelocity Sensors::SonTekArgonaut::Task::m_gvel

Ground velocity.

IMC::Temperature Sensors::SonTekArgonaut::Task::m_temp

Temperature.

SerialPort* Sensors::SonTekArgonaut::Task::m_uart

Serial port.

Counter<double> Sensors::SonTekArgonaut::Task::m_wdog

Input watchdog.

IMC::WaterVelocity Sensors::SonTekArgonaut::Task::m_wvel

Water velocity.

Collaboration diagram for Sensors::SonTekArgonaut::Task:
Collaboration graph