fix initialization of attitude controllers

This commit is contained in:
Thomas Gubler
2013-11-03 22:04:32 +01:00
parent 4db049144f
commit 89b8acd7a8
4 changed files with 22 additions and 8 deletions
@@ -49,10 +49,19 @@
ECL_PitchController::ECL_PitchController() :
_last_run(0),
_tc(0.1f),
_k_p(0.0f),
_k_i(0.0f),
_k_d(0.0f),
_integrator_max(0.0f),
_max_rate_pos(0.0f),
_max_rate_neg(0.0f),
_roll_ff(0.0f),
_last_output(0.0f),
_integrator(0.0f),
_rate_error(0.0f),
_rate_setpoint(0.0f)
_rate_setpoint(0.0f),
_bodyrate_setpoint(0.0f)
{
}