Skip to content

Commit

Permalink
better brake-smoothing
Browse files Browse the repository at this point in the history
  • Loading branch information
jaustindavid committed May 20, 2014
1 parent 49b36da commit f2690e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wiiceiver/Throttle.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class Throttle {
} // if (chuck.C) -- else

// don't smooth brakes
if (throttle <= 0) {
if (throttle <= 0 && smoothed <= 0) {
smoothed = smoother.compute(throttle, 1.0);
} else {
// holding Z == more aggressive smoothing (e.g., more responsive)
Expand Down

0 comments on commit f2690e8

Please sign in to comment.