DUNE: Uniform Navigational Environment  2.6.0-rc4
Sensors::Edgetech2205::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onUpdateParameters (void)
 
void onResourceRelease (void)
 
void onResourceInitialization (void)
 
void onRequestActivation (void)
 
void checkActivationProgress (void)
 
void onActivation (void)
 
void onRequestDeactivation (void)
 
void checkDeactivationProgress (void)
 
void onDeactivation (void)
 
void consume (const IMC::PowerChannelState *msg)
 
void consume (const IMC::EstimatedState *msg)
 
void consume (const IMC::LoggingControl *msg)
 
void setConfig (void)
 
void setDataActive (SubsystemId subsys, const std::string &channels)
 
void setPing (SubsystemId subsys, const std::string &channels)
 
void handleSonarData (Packet *pkt)
 
void handle (Packet *pkt)
 
bool readData (void)
 
void openLog (const Path &path)
 
void writeToLog (const Packet *pkt)
 
void closeLog (void)
 
void onMain (void)
 

Static Public Member Functions

static void convertPositionToJSF (const IMC::EstimatedState &estate, int32_t &lat, int32_t &lon)
 
static void convertTimeToJSF (int64_t msec, uint32_t &sec, uint32_t &msec_today)
 
static void convertTimeFromJSF (int64_t &msec, uint32_t sec, uint32_t msec_today)
 

Public Attributes

TCPSocket * m_sock_dat
 
std::vector< uint8_t > m_bfr
 
Parser m_parser
 
CommandLinkm_cmd
 
std::ofstream m_log_file
 
Path m_log_path
 
int64_t m_time_diff
 
IMC::EstimatedState m_estate
 
IMC::PowerChannelControl m_pwr_ss
 
Arguments m_args
 
bool m_first_shot
 
Counter< double > m_countdown
 
IMC::PowerChannelState m_pwr_state
 

Static Public Attributes

static const unsigned c_buffer_size
 

Constructor & Destructor Documentation

Member Function Documentation

void Sensors::Edgetech2205::Task::checkDeactivationProgress ( void  )
inline
void Sensors::Edgetech2205::Task::closeLog ( void  )
inline
void Sensors::Edgetech2205::Task::consume ( const IMC::PowerChannelState *  msg)
inline
void Sensors::Edgetech2205::Task::consume ( const IMC::EstimatedState *  msg)
inline

References m_estate.

void Sensors::Edgetech2205::Task::consume ( const IMC::LoggingControl *  msg)
inline

References closeLog(), and openLog().

static void Sensors::Edgetech2205::Task::convertPositionToJSF ( const IMC::EstimatedState &  estate,
int32_t &  lat,
int32_t &  lon 
)
inlinestatic

Referenced by handleSonarData().

static void Sensors::Edgetech2205::Task::convertTimeFromJSF ( int64_t &  msec,
uint32_t  sec,
uint32_t  msec_today 
)
inlinestatic

Referenced by handleSonarData().

static void Sensors::Edgetech2205::Task::convertTimeToJSF ( int64_t  msec,
uint32_t &  sec,
uint32_t &  msec_today 
)
inlinestatic

Referenced by handleSonarData().

void Sensors::Edgetech2205::Task::handle ( Packet pkt)
inline
void Sensors::Edgetech2205::Task::onDeactivation ( void  )
inline
void Sensors::Edgetech2205::Task::onRequestActivation ( void  )
inline
void Sensors::Edgetech2205::Task::onResourceInitialization ( void  )
inline
void Sensors::Edgetech2205::Task::onResourceRelease ( void  )
inline

References closeLog().

void Sensors::Edgetech2205::Task::openLog ( const Path &  path)
inline

References closeLog(), m_log_file, and m_log_path.

Referenced by consume().

bool Sensors::Edgetech2205::Task::readData ( void  )
inline
void Sensors::Edgetech2205::Task::setDataActive ( SubsystemId  subsys,
const std::string &  channels 
)
inline
void Sensors::Edgetech2205::Task::setPing ( SubsystemId  subsys,
const std::string &  channels 
)
inline
void Sensors::Edgetech2205::Task::writeToLog ( const Packet pkt)
inline

Member Data Documentation

const unsigned Sensors::Edgetech2205::Task::c_buffer_size
static

Buffer size.

Referenced by Task().

Arguments Sensors::Edgetech2205::Task::m_args

Configuration parameters.

Referenced by checkActivationProgress(), consume(), onActivation(), onUpdateParameters(), setConfig(), and Task().

std::vector<uint8_t> Sensors::Edgetech2205::Task::m_bfr

Read buffer.

Referenced by readData(), and Task().

CommandLink* Sensors::Edgetech2205::Task::m_cmd
Counter<double> Sensors::Edgetech2205::Task::m_countdown
IMC::EstimatedState Sensors::Edgetech2205::Task::m_estate

Estimated state.

Referenced by consume(), and handleSonarData().

bool Sensors::Edgetech2205::Task::m_first_shot

True if first shot.

Referenced by handle(), and onRequestDeactivation().

std::ofstream Sensors::Edgetech2205::Task::m_log_file

Log file.

Referenced by closeLog(), openLog(), and writeToLog().

Path Sensors::Edgetech2205::Task::m_log_path

Log filename.

Referenced by closeLog(), and openLog().

Parser Sensors::Edgetech2205::Task::m_parser

Parser.

Referenced by readData().

IMC::PowerChannelControl Sensors::Edgetech2205::Task::m_pwr_ss
IMC::PowerChannelState Sensors::Edgetech2205::Task::m_pwr_state

Power channel state.

Referenced by checkDeactivationProgress(), and consume().

TCPSocket* Sensors::Edgetech2205::Task::m_sock_dat

Data socket.

Referenced by onActivation(), onMain(), onRequestDeactivation(), and readData().

int64_t Sensors::Edgetech2205::Task::m_time_diff

Time difference.

Referenced by handleSonarData(), and onMain().

Collaboration diagram for Sensors::Edgetech2205::Task:
Collaboration graph