DUNE: Uniform Navigational Environment
2020.01.0
|
Motor simulator task
Public Member Functions | |
Task (const std::string &name, Tasks::Context &ctx) | |
void | onResourceRelease (void) |
void | onResourceInitialization (void) |
void | consume (const IMC::SetThrusterActuation *msg) |
void | task (void) |
Public Attributes | |
MovingAverage< double > * | m_avg_motor |
IMC::Rpm | m_rpm |
int16_t | m_rpm_new |
Arguments | m_args |
|
inline |
|
inline |
|
inline |
Initialize resources.
References Simulators::Motor::Arguments::avg_samples.
|
inline |
Release resources.
|
inline |
References DUNE::Math::MovingAverage< T >::update().
MovingAverage<double>* Simulators::Motor::Task::m_avg_motor |
Moving average filter for frequency of rotation.
IMC::Rpm Simulators::Motor::Task::m_rpm |
Filtered motor frequency of rotation (RPM).
int16_t Simulators::Motor::Task::m_rpm_new |
New frequency of rotation value.