Public Member Functions | Protected Attributes | List of all members
MotorModel::Filter Class Reference

#include <motor_model.h>

Inheritance diagram for MotorModel::Filter:
Inheritance graph
[legend]

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. More...
 
- Public Member Functions inherited from MotorModel::SimpleFilter
double filter () const
 
void reset ()
 
void sample (double value, double filter_coefficient)
 Updates filter with newly sampled value. More...
 
 SimpleFilter ()
 

Protected Attributes

double filter_coefficient_
 
double max_filtered_value_
 
- Protected Attributes inherited from MotorModel::SimpleFilter
double 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.

void MotorModel::Filter::reset ( )

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.

Returns
true if new filtered value is large than previous maximum value

Definition at line 418 of file motor_model.cpp.

Member Data Documentation

double MotorModel::Filter::filter_coefficient_
protected

Definition at line 71 of file motor_model.h.

double MotorModel::Filter::max_filtered_value_
protected

Definition at line 72 of file motor_model.h.


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


ethercat_hardware
Author(s): Rob Wheeler , Derek King
autogenerated on Thu Mar 4 2021 03:10:21