DUNE: Uniform Navigational Environment  2.3.0
Sensors::Edgetech2205::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 onRequestActivation (void)
 
void onActivation (void)
 
void onRequestDeactivation (void)
 
void onDeactivation (void)
 
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 checkActivationProgress (void)
 
void checkDeactivationProgress (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
 
IOMultiplexing m_iom_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_activating
 
bool m_deactivating
 
Counter< double > m_countdown
 

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::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

References m_deactivating, and m_pwr_ss.

void Sensors::Edgetech2205::Task::onRequestActivation ( void  )
inline
void Sensors::Edgetech2205::Task::onResourceAcquisition ( 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().

bool Sensors::Edgetech2205::Task::m_activating

True if task is activating.

Referenced by checkActivationProgress(), onActivation(), onMain(), and onRequestActivation().

Arguments Sensors::Edgetech2205::Task::m_args

Configuration parameters.

Referenced by checkActivationProgress(), 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
bool Sensors::Edgetech2205::Task::m_deactivating

True if task is deactivating.

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

IMC::EstimatedState Sensors::Edgetech2205::Task::m_estate

Estimated state.

Referenced by consume(), and handleSonarData().

IOMultiplexing Sensors::Edgetech2205::Task::m_iom_dat

I/O multiplexing of data socket.

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

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
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