mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 16:38:37 -05:00
18 lines
209 B
C++
18 lines
209 B
C++
|
#include "pidcontroller.h"
|
||
|
|
||
|
PIDController::PIDController() :
|
||
|
m_p(0.0),
|
||
|
m_i(0.0),
|
||
|
m_d(0.0),
|
||
|
m_int(0.0),
|
||
|
m_diff(0.0)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void PIDController::setup(Real p, Real i, Real d)
|
||
|
{
|
||
|
m_p = p;
|
||
|
m_i = i;
|
||
|
m_d = d;
|
||
|
}
|