fixed PID initialisation

This commit is contained in:
Andrew Tridgell 2012-02-13 14:11:21 +11:00
parent 9e4145b2c3
commit 845d056c18

View File

@ -17,7 +17,11 @@ public:
PID(const float &initial_p = 0.0,
const float &initial_i = 0.0,
const float &initial_d = 0.0,
const int16_t &initial_imax = 0.0)
const int16_t &initial_imax = 0) :
_kp (initial_p),
_ki (initial_i),
_kd (initial_d),
_imax(initial_imax)
{
}