TranslationControl: index fix

This commit is contained in:
Dennis Mannhart 2017-12-22 09:37:30 +01:00 committed by Beat Küng
parent 840247251d
commit adcb2b9ca8

View File

@ -141,6 +141,7 @@ void TranslationControl::_interfaceMapping()
} else if (!PX4_ISFINITE(_yaw_sp)) {
_yaw_sp = _yaw_sp_int;
}
}
/* generate desired velocity */
@ -226,9 +227,10 @@ void TranslationControl::_velocityController(const float &dt)
}
if (!stop_I[1]) {
_thr_int(2) += vel_err(3) * Iv(2) * dt;
_thr_int(2) += vel_err(2) * Iv(2) * dt;
}
}
void TranslationControl::_yawController(const float &dt)