AC_PosControl: remove unnecessary set of desired_accel

The desired_accel is set again 11 lines lower so this line did nothing.
This commit is contained in:
Randy Mackay 2015-01-14 16:23:26 +09:00
parent 9ebd0e9960
commit aeecc46f7b
1 changed files with 0 additions and 1 deletions

View File

@ -325,7 +325,6 @@ void AC_PosControl::rate_to_accel_z()
// Reset Filter // Reset Filter
_vel_error.z = 0; _vel_error.z = 0;
_vel_error_filter.reset(0); _vel_error_filter.reset(0);
desired_accel = 0;
_flags.reset_rate_to_accel_z = false; _flags.reset_rate_to_accel_z = false;
} else { } else {
// calculate rate error and filter with cut off frequency of 2 Hz // calculate rate error and filter with cut off frequency of 2 Hz