Public Member Functions | Protected Attributes
MotorModel::Filter Class Reference

#include <motor_model.h>

Inheritance diagram for MotorModel::Filter:
Inheritance graph

List of all members.

Public Member Functions

 Filter (double filter_coefficient)
double filter_max () const
void reset ()
bool sample (double value)
 Updates filter with newly sampled value, also tracks max value.

Protected Attributes

double filter_coefficient_
double max_filtered_value_

Detailed Description

Definition at line 63 of file motor_model.h.

Constructor & Destructor Documentation

MotorModel::Filter::Filter ( double  filter_coefficient)

Definition at line 434 of file motor_model.cpp.

Member Function Documentation

double MotorModel::Filter::filter_max ( ) const [inline]

Definition at line 69 of file motor_model.h.

Reimplemented from MotorModel::SimpleFilter.

Definition at line 446 of file motor_model.cpp.

bool MotorModel::Filter::sample ( double  value)

Updates filter with newly sampled value, also tracks max value.

true if new filtered value is large than previous maximum value

Definition at line 418 of file motor_model.cpp.

Member Data Documentation

Definition at line 71 of file motor_model.h.

Definition at line 72 of file motor_model.h.

The documentation for this class was generated from the following files:

Author(s): Rob Wheeler , Derek King
autogenerated on Fri Aug 28 2015 12:09:44