DUNE: Uniform Navigational Environment
2016.09.0
|
StreamEstimator is responsible to estimate the stream of the liquid fluid surrounding a underwater or surface vehicle.
Public Member Functions | |
StreamEstimator (void) | |
bool | consume (const IMC::EstimatedState state, const IMC::GpsFix *gps, IMC::EstimatedStreamVelocity &stream) |
void | consume (const IMC::Rpm *msg) |
|
inline |
Constructor.
References DUNE::Time::Counter< T >::setTop().
|
inline |
Received GpsFix estimate.
[in] | msg | new GpsFix. |
[out] | stream | Estimated stream velocity. |
References DUNE::Math::MovingAverage< T >::clear(), DUNE::Coordinates::WGS84::displacement(), DUNE::Coordinates::WGS84::distance(), DUNE::IMC::Message::getTimeStamp(), DUNE::IMC::GpsFix::lat, DUNE::IMC::GpsFix::lon, DUNE::Time::Counter< T >::overflow(), DUNE::Time::Counter< T >::reset(), DUNE::Math::MovingAverage< T >::sampleSize(), DUNE::Coordinates::toWGS84(), DUNE::Math::MovingAverage< T >::update(), DUNE::IMC::EstimatedStreamVelocity::x, and DUNE::IMC::EstimatedStreamVelocity::y.
Referenced by DUNE::Navigation::BasicNavigation::consume().
|
inline |
Received new RPM reading.
[in] | msg | new Rpm. |
References DUNE::Math::MovingAverage< T >::clear(), DUNE::Time::Counter< T >::reset(), and DUNE::IMC::Rpm::value.