DUNE: Uniform Navigational Environment
2019.02.1
|
Task.
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) |
void | consume (const IMC::UamTxStatus *msg) |
void | consume (const IMC::SoundSpeed *msg) |
void | consume (const IMC::VehicleMedium *msg) |
void | onMain (void) |
void | filterRange (DUNE::IMC::Distance &dist, DUNE::IMC::SonarData &profile) |
Public Attributes | |
SerialPort * | m_uart |
Trigger | m_trigger |
IMC::Distance | m_dist |
IMC::SonarData | m_profile |
Arguments | m_args |
Counter< double > | m_wdog |
double | m_sound_speed |
SwitchData | m_switch |
Parser | m_parser |
PatternFilter * | m_pfilt |
Monitors::MediumHandler | m_hand |
bool | m_uam_tx_ip |
|
inline |
Task constructor.
References Sensors::Imagenex852::Arguments::auto_activation, Sensors::Imagenex852::Arguments::data_points, Sensors::Imagenex852::Arguments::filter_enabled, Sensors::Imagenex852::Arguments::filter_median_size, Sensors::Imagenex852::Arguments::filter_threshold, Sensors::Imagenex852::Arguments::orientation, Sensors::Imagenex852::Arguments::pattern_diff, Sensors::Imagenex852::Arguments::pattern_filter, Sensors::Imagenex852::Arguments::position, Sensors::Imagenex852::Arguments::profile_range, Sensors::Imagenex852::Arguments::pulse_length, Sensors::Imagenex852::Arguments::range, Sensors::Imagenex852::Arguments::sample_frequency, Sensors::Imagenex852::Arguments::sspeed, Sensors::Imagenex852::Arguments::sspeed_dyn, Sensors::Imagenex852::Arguments::start_gain, Sensors::Imagenex852::Arguments::surface, and Sensors::Imagenex852::Arguments::uart_dev.
|
inline |
|
inline |
|
inline |
|
inline |
Filter profile range using information in data points.
[in,out] | dist | Distance message. |
[in,out] | profile | SonarData message. |
References DUNE::IMC::SonarData::data, Sensors::Imagenex852::Arguments::data_points, Sensors::Imagenex852::Arguments::filter_median_size, Sensors::Imagenex852::Arguments::filter_threshold, Sensors::Imagenex852::SwitchData::getRange(), DUNE::Math::median(), and DUNE::IMC::Distance::value.
|
inline |
References Sensors::Imagenex852::Trigger::setActive().
|
inline |
References Sensors::Imagenex852::Trigger::setActive().
|
inline |
References Sensors::Imagenex852::Arguments::filter_enabled, Sensors::Imagenex852::PatternFilter::filterPattern(), Sensors::Imagenex852::Parser::getDataPointsCount(), Sensors::Imagenex852::SwitchData::getProfileMinRange(), Sensors::Imagenex852::Parser::getProfileRange(), Sensors::Imagenex852::Parser::getRange(), Sensors::Imagenex852::Parser::parse(), Sensors::Imagenex852::Arguments::pattern_filter, and Sensors::Imagenex852::Arguments::sspeed_dyn.
|
inline |
Acquire resources.
References Sensors::Imagenex852::Arguments::pattern_diff, Sensors::Imagenex852::Arguments::pattern_filter, and Sensors::Imagenex852::Arguments::uart_dev.
|
inline |
|
inline |
Release resources.
|
inline |
Update parameters.
References Sensors::Imagenex852::Arguments::data_points, Sensors::Imagenex852::Arguments::orientation, Sensors::Imagenex852::Arguments::position, Sensors::Imagenex852::Arguments::profile_range, Sensors::Imagenex852::Arguments::pulse_length, Sensors::Imagenex852::Arguments::range, Sensors::Imagenex852::Arguments::sample_frequency, Sensors::Imagenex852::SwitchData::setDataPoints(), Sensors::Imagenex852::SwitchData::setProfileMinRange(), Sensors::Imagenex852::SwitchData::setPulseLength(), Sensors::Imagenex852::SwitchData::setRange(), Sensors::Imagenex852::Trigger::setSampleFrequency(), Sensors::Imagenex852::SwitchData::setStartGain(), Sensors::Imagenex852::Arguments::sspeed, Sensors::Imagenex852::Arguments::start_gain, and Sensors::Imagenex852::Arguments::uart_dev.
IMC::Distance Sensors::Imagenex852::Task::m_dist |
Distance message.
Monitors::MediumHandler Sensors::Imagenex852::Task::m_hand |
Medium handler.
Parser Sensors::Imagenex852::Task::m_parser |
Return data parser.
PatternFilter* Sensors::Imagenex852::Task::m_pfilt |
Pattern filter.
IMC::SonarData Sensors::Imagenex852::Task::m_profile |
Profile message.
double Sensors::Imagenex852::Task::m_sound_speed |
Last valid sound speed value.
SwitchData Sensors::Imagenex852::Task::m_switch |
Switch data.
Trigger Sensors::Imagenex852::Task::m_trigger |
Shot trigger.
bool Sensors::Imagenex852::Task::m_uam_tx_ip |
Underwater acoustic modem transmission in progress.
SerialPort* Sensors::Imagenex852::Task::m_uart |
Serial port handle.
Counter<double> Sensors::Imagenex852::Task::m_wdog |
Watchdog.