AC_PID: updates for new AP_Param API

This commit is contained in:
Andrew Tridgell 2012-12-13 08:41:28 +11:00
parent 5a9ba4aeb4
commit 9349259487

View File

@ -32,6 +32,8 @@ public:
const float & initial_d = 0.0, const float & initial_d = 0.0,
const int16_t & initial_imax = 0.0) const int16_t & initial_imax = 0.0)
{ {
AP_Param::setup_object_defaults(this, var_info);
_kp = initial_p; _kp = initial_p;
_ki = initial_i; _ki = initial_i;
_kd = initial_d; _kd = initial_d;