DUNE: Uniform Navigational Environment
2016.05.0
|
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::fsamples, DUNE::Control::BottomTracker::Arguments::min_range, reset(), DUNE::Control::BottomTracker::Arguments::safe_pitch, 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::DF_KEEP_TIME, DUNE::Entities::BasicEntity::dispatch(), DUNE::Control::BottomTracker::Arguments::entity, and DUNE::IMC::Message::setTimeStamp().
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, DUNE::Tasks::DF_KEEP_TIME, DUNE::Entities::BasicEntity::dispatch(), DUNE::Control::BottomTracker::Arguments::entity, and DUNE::Time::Clock::get().
Referenced by DUNE::Control::PathController::consume().
void DUNE::Control::BottomTracker::reset | ( | void | ) |
Reset task's variables.
References DUNE::IMC::ControlParcel::clear(), 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().