slightly less filtering for less latency

This commit is contained in:
Jason Short 2012-01-21 22:04:54 -08:00
parent 9003b95499
commit 5cc19bbe7c

View File

@ -165,7 +165,8 @@ get_nav_throttle(int32_t z_error)
//output -= constrain(rate_d, -25, 25);
// light filter of output
output = (old_output * 3 + output) / 4;
//output = (old_output * 3 + output) / 4;
output = (old_output + output) / 2;
// save our output
old_output = output;