Skip to content

Commit

Permalink
BUG: Reset the encoders at release
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-wieser committed Jun 1, 2017
1 parent b1d1f96 commit 21ba80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ auto on_go = [](const Go& go) {
state_tracker = StateTracker();
phase = LoopPhase::PRE;

resetEncoders();

// compute the new mode
Mode target;
Expand Down Expand Up @@ -333,6 +332,7 @@ auto on_go = [](const Go& go) {

// enter the new mode, and begin
mode = target;
resetEncoders();
state_tracker.q = accelOrient();
ctrl_tmr.start();

Expand Down

0 comments on commit 21ba80a

Please sign in to comment.