ACM Nav_throttle- removed sign inversion

This commit is contained in:
Jason Short 2012-11-16 17:38:57 -08:00
parent 6c407e5770
commit ab215838a6
1 changed files with 0 additions and 2 deletions

View File

@ -449,8 +449,6 @@ get_throttle_rate(int16_t z_target_speed)
int16_t tmp = ((int32_t)z_target_speed * (int32_t)g.throttle_cruise) / 280;
tmp = min(tmp, 500);
if(z_target_speed < 0) tmp = -tmp;
// separately calculate p, i, d values for logging
p = g.pid_throttle.get_p(z_rate_error);