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 52 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 58 of file motor_model.h.

void MotorModel::Filter::reset (  ) 

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 60 of file motor_model.h.

Definition at line 61 of file motor_model.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Author(s): Maintained by Derek King (email:
autogenerated on Fri Jan 11 09:11:23 2013