DUNE: Uniform Navigational Environment  2016.09.0
DUNE::Monitors::VerticalMonitor Class Reference

Detailed Description

VerticalMonitor monitors the vehicle's progress in the z direction

Author
Pedro Calado.

Public Member Functions

 VerticalMonitor (float timeout, float min_speed)
 
 ~VerticalMonitor (void)
 
bool isProgressSlow (float z_speed)
 

Constructor & Destructor Documentation

DUNE::Monitors::VerticalMonitor::VerticalMonitor ( float  timeout,
float  min_speed 
)
inline

Constructor.

Parameters
[in]timeoutamount of time before triggering condition as met
[in]min_speedminimum speed for triggering condition

References DUNE::Time::Counter< T >::setTop().

DUNE::Monitors::VerticalMonitor::~VerticalMonitor ( void  )
inline

References DUNE::Memory::clear().

Member Function Documentation

bool DUNE::Monitors::VerticalMonitor::isProgressSlow ( float  z_speed)
inline

Test if progress is slow.

Parameters
[in]z_speedcurrent vz speed
Returns
true if progress is slow

References DUNE::Time::Counter< T >::overflow(), DUNE::Time::Counter< T >::reset(), and DUNE::Math::MovingAverage< T >::update().

Collaboration diagram for DUNE::Monitors::VerticalMonitor:
Collaboration graph