DUNE: Uniform Navigational Environment
2.3.2
|
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 |
CommandLink * | m_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 |
|
inline |
References Sensors::Edgetech2205::Arguments::addr, Sensors::Edgetech2205::Arguments::autosel_mode, c_buffer_size, Sensors::Edgetech2205::Arguments::channels_hf, Sensors::Edgetech2205::Arguments::channels_lf, m_args, m_bfr, m_pwr_ss, Sensors::Edgetech2205::Arguments::port_cmd, Sensors::Edgetech2205::Arguments::port_dat, Sensors::Edgetech2205::Arguments::pwr_ss, Sensors::Edgetech2205::Arguments::range_hf, Sensors::Edgetech2205::Arguments::range_lf, and Sensors::Edgetech2205::Arguments::trg_div.
|
inline |
|
inline |
References m_countdown, and DUNE::Time::Counter< T >::overflow().
Referenced by onMain().
|
inline |
References m_log_file, and m_log_path.
Referenced by consume(), onRequestDeactivation(), onResourceRelease(), and openLog().
|
inline |
References m_estate.
|
inline |
References closeLog(), and openLog().
|
inlinestatic |
Referenced by handleSonarData().
|
inlinestatic |
Referenced by handleSonarData().
|
inlinestatic |
Referenced by handleSonarData().
|
inline |
References Sensors::Edgetech2205::Packet::getMessageType(), handleSonarData(), Sensors::Edgetech2205::MSG_ID_SONAR_DATA, and writeToLog().
Referenced by readData().
|
inline |
References convertPositionToJSF(), convertTimeFromJSF(), convertTimeToJSF(), Sensors::Edgetech2205::Packet::get(), m_estate, m_time_diff, Sensors::Edgetech2205::SDATA_IDX_ALTITUDE, Sensors::Edgetech2205::SDATA_IDX_COORDINATE_UNITS, Sensors::Edgetech2205::SDATA_IDX_COURSE, Sensors::Edgetech2205::SDATA_IDX_CPU_DAY, Sensors::Edgetech2205::SDATA_IDX_CPU_HOUR, Sensors::Edgetech2205::SDATA_IDX_CPU_MINUTES, Sensors::Edgetech2205::SDATA_IDX_CPU_SECONDS, Sensors::Edgetech2205::SDATA_IDX_CPU_TIME_BASIS, Sensors::Edgetech2205::SDATA_IDX_CPU_YEAR, Sensors::Edgetech2205::SDATA_IDX_DEPTH, Sensors::Edgetech2205::SDATA_IDX_HEADING, Sensors::Edgetech2205::SDATA_IDX_LATITUDE, Sensors::Edgetech2205::SDATA_IDX_LONGITUDE, Sensors::Edgetech2205::SDATA_IDX_MILLISECOND_TODAY, Sensors::Edgetech2205::SDATA_IDX_NMEA_HOUR, Sensors::Edgetech2205::SDATA_IDX_NMEA_MINUTES, Sensors::Edgetech2205::SDATA_IDX_NMEA_SECONDS, Sensors::Edgetech2205::SDATA_IDX_PITCH, Sensors::Edgetech2205::SDATA_IDX_ROLL, Sensors::Edgetech2205::SDATA_IDX_SPEED, Sensors::Edgetech2205::SDATA_IDX_TIME, Sensors::Edgetech2205::SDATA_IDX_VALIDITY, and Sensors::Edgetech2205::Packet::set().
Referenced by handle().
|
inline |
References Sensors::Edgetech2205::Arguments::addr, m_activating, m_args, m_cmd, m_iom_dat, m_sock_dat, Sensors::Edgetech2205::Arguments::port_dat, setConfig(), Sensors::Edgetech2205::CommandLink::setPingTrigger(), Sensors::Edgetech2205::SUBSYS_SSH, Sensors::Edgetech2205::SUBSYS_SSL, and Sensors::Edgetech2205::TRIG_MODE_INTERNAL.
|
inline |
References m_deactivating, and m_pwr_ss.
|
inline |
|
inline |
References m_activating, m_countdown, m_pwr_ss, and DUNE::Time::Counter< T >::setTop().
|
inline |
|
inline |
|
inline |
|
inline |
References closeLog().
|
inline |
|
inline |
References closeLog(), m_log_file, and m_log_path.
Referenced by consume().
|
inline |
References Sensors::Edgetech2205::Parser::getPacket(), handle(), m_bfr, m_iom_dat, m_parser, m_sock_dat, and Sensors::Edgetech2205::Parser::parse().
Referenced by onMain().
|
inline |
References Sensors::Edgetech2205::Arguments::autosel_mode, Sensors::Edgetech2205::Arguments::channels_hf, Sensors::Edgetech2205::Arguments::channels_lf, m_args, m_cmd, Sensors::Edgetech2205::Arguments::range_hf, Sensors::Edgetech2205::Arguments::range_lf, setDataActive(), setPing(), Sensors::Edgetech2205::CommandLink::setPingAutoselectMode(), Sensors::Edgetech2205::CommandLink::setPingCoupling(), Sensors::Edgetech2205::CommandLink::setPingRange(), Sensors::Edgetech2205::CommandLink::setPingTrigger(), Sensors::Edgetech2205::SUBSYS_SSH, Sensors::Edgetech2205::SUBSYS_SSL, Sensors::Edgetech2205::Arguments::trg_div, Sensors::Edgetech2205::TRIG_MODE_COUPLED, and Sensors::Edgetech2205::TRIG_MODE_INTERNAL.
Referenced by onActivation(), and onUpdateParameters().
|
inline |
References Sensors::Edgetech2205::CHAN_PORT, Sensors::Edgetech2205::CHAN_STARBOARD, m_cmd, and Sensors::Edgetech2205::CommandLink::setDataActive().
Referenced by onRequestDeactivation(), and setConfig().
|
inline |
References m_cmd, and Sensors::Edgetech2205::CommandLink::setPing().
Referenced by onRequestDeactivation(), and setConfig().
|
inline |
References Sensors::Edgetech2205::Packet::getData(), Sensors::Edgetech2205::Packet::getSize(), and m_log_file.
Referenced by handle().
|
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 |
Command link.
Referenced by checkActivationProgress(), onActivation(), onMain(), onRequestDeactivation(), setConfig(), setDataActive(), and setPing().
Counter<double> Sensors::Edgetech2205::Task::m_countdown |
Activation/deactivation timer.
Referenced by checkActivationProgress(), checkDeactivationProgress(), onRequestActivation(), and onRequestDeactivation().
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 |
Referenced by readData().
IMC::PowerChannelControl Sensors::Edgetech2205::Task::m_pwr_ss |
Power channel state.
Referenced by onDeactivation(), onRequestActivation(), onUpdateParameters(), and Task().
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().