wip, minor bugfixes in fw att control

This commit is contained in:
Thomas Gubler
2013-10-24 17:40:14 +02:00
parent b21b9078e2
commit a0ea0901b5
3 changed files with 8 additions and 6 deletions
@@ -90,7 +90,7 @@ float ECL_PitchController::control_attitude(float pitch_setpoint, float roll, fl
float pitch_error = pitch_setpoint - pitch;
/* Apply P controller: rate setpoint from current error and time constant */
float _rate_setpoint = pitch_error / _tc;
_rate_setpoint = pitch_error / _tc;
/* add turn offset */
_rate_setpoint += turn_offset;