Skip to content
Snippets Groups Projects
Commit c5d2ce18 authored by Mirko Wächter's avatar Mirko Wächter
Browse files

added pd output filter to pwm velocity controller

parent bf70f9b8
No related branches found
No related tags found
Loading
......@@ -23,6 +23,8 @@
*/
#include "PWMVelocityController.h"
#include <ArmarXCore/observers/filters/rtfilters/AverageFilter.h>
namespace armarx
{
......@@ -35,6 +37,7 @@ namespace armarx
pid.reset(new PIDController(velocityControllerConfigDataPtr->p,
velocityControllerConfigDataPtr->i,
velocityControllerConfigDataPtr->d));
pid->pdOutputFilter.reset(new rtfilters::AverageFilter(5));
pid->maxIntegral = velocityControllerConfigDataPtr->maxIntegral;
pid->conditionalIntegralErrorTreshold = velocityControllerConfigDataPtr->conditionalIntegralErrorTreshold;
pid->threadSafe = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment