DUNE: Uniform Navigational Environment
2.5.0-rc1
|
Classes | |
struct | Arguments |
Public Member Functions | |
BottomTracker (const Arguments *args) | |
~BottomTracker (void) | |
void | reset (void) |
void | activate (void) |
void | deactivate (void) |
void | onDistance (const DUNE::IMC::Distance *msg) |
void | onDesiredZ (const DUNE::IMC::DesiredZ *msg, bool outgoing) |
void | onDesiredZ (const DUNE::IMC::DesiredZ *msg) |
void | onDesiredSpeed (const DUNE::IMC::DesiredSpeed *msg) |
void | onEstimatedState (const DUNE::IMC::EstimatedState *msg) |
DUNE::Control::BottomTracker::BottomTracker | ( | const Arguments * | args | ) |
Constructor.
[in] | args | pointer to bottom track arguments struct |
References DUNE::Control::BottomTracker::Arguments::eid, DUNE::Control::BottomTracker::Arguments::fsamples, DUNE::Control::BottomTracker::Arguments::min_range, reset(), DUNE::Control::BottomTracker::Arguments::safe_pitch, DUNE::IMC::Message::setSourceEntity(), and DUNE::Control::BottomTracker::Arguments::slope_hyst.
DUNE::Control::BottomTracker::~BottomTracker | ( | void | ) |
Destructor.
References DUNE::Memory::clear().
void DUNE::Control::BottomTracker::activate | ( | void | ) |
Activate bottom tracker.
References reset().
void DUNE::Control::BottomTracker::deactivate | ( | void | ) |
Deactivate bottom tracker.
void DUNE::Control::BottomTracker::onDesiredSpeed | ( | const DUNE::IMC::DesiredSpeed * | msg | ) |
On new desired speed message.
[in] | msg | message being consumed or sent. |
References DUNE::IMC::DesiredSpeed::value.
Referenced by DUNE::Control::PathController::consume().
void DUNE::Control::BottomTracker::onDesiredZ | ( | const DUNE::IMC::DesiredZ * | msg, |
bool | outgoing | ||
) |
On new desired z reference message (sent or received).
[in] | msg | message being consumed or sent. |
[in] | outgoing | true if message is supposed to go to the bus. |
References DUNE::Tasks::Task::getEntityId(), DUNE::IMC::Message::setSourceEntity(), DUNE::IMC::Message::setTimeStamp(), and DUNE::Control::BottomTracker::Arguments::task.
Referenced by DUNE::Control::PathController::consume(), and onDesiredZ().
|
inline |
On new desired z reference message (sent or received).
[in] | msg | message being consumed or sent. |
References onDesiredZ().
void DUNE::Control::BottomTracker::onDistance | ( | const DUNE::IMC::Distance * | msg | ) |
On consume message Distance.
[in] | msg | message being consumed. |
References DUNE::Control::SlopeData::onDistance().
Referenced by DUNE::Control::PathController::consume().
void DUNE::Control::BottomTracker::onEstimatedState | ( | const DUNE::IMC::EstimatedState * | msg | ) |
On new EstimatedState message.
[in] | msg | message being consumed. |
References DUNE::Control::BottomTracker::Arguments::control_period, and DUNE::Time::Clock::get().
Referenced by DUNE::Control::PathController::consume().
void DUNE::Control::BottomTracker::reset | ( | void | ) |
Reset task's variables.
References DUNE::Time::Clock::get(), DUNE::Control::SlopeData::reset(), DUNE::IMC::DesiredZ::value, DUNE::IMC::Z_NONE, and DUNE::IMC::DesiredZ::z_units.
Referenced by activate(), and BottomTracker().