49 #ifndef _DYNA_PID_POS_H 50 #define _DYNA_PID_POS_H 58 #include "rnr/rnrconfig.h" 136 virtual void SpecifySetPoint(
int nOdPosStart,
141 bool bUnwind =
false);
162 m_fSpeedAbsMax = 0.0;
174 virtual double error(
double fPVodPosCur);
183 virtual double toOutput(
double fCVSpeed);
186 #endif // _DYNA_PID_POS_H double m_fKd
derivative constant
int m_nOdPosStart
starting odometer position
DynaPidPos & operator=(const DynaPidPos &rhs)
Assignment operator.
void initParams()
Initialize parameters.
static const double TuneMaxSpeedDelta
max speed change deltas
int m_nOdDir
odometer direction
double m_fSpeedAbsMax
absolute speed limit >= 0
DynaPidPos(const DynaPid &src)
Copy constructor.
int m_nSpeedLim
speed limit (max neg/pos speed)
double m_fKp
proportional constant
The Dynamixel PID Base Class.
int m_nOdPosGoal
goal ing odometer position (set point)
RoadNarrows Dynamixel Top-Level Package Header File.
static const double TuneAbsMinSpeed
absolute minimum speed
Proportional–Integral–Derivative Controller for Dynamixel servos.
int m_nOdPosCur
current odometer position
double m_fWi
weighted sum of errors moving average constant
double m_fKi
integral constant
double m_fPrevSpeed
previous speed
DynaPidPos(double fKp=0.5, double fKi=0.0, double fKd=0.005, double fWi=0.25)
Default constructor.
virtual ~DynaPidPos()
Default destructor.