Skip to content

Commit

Permalink
Tweak the raise to wake values a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
FintasticMan committed Dec 13, 2021
1 parent 52bd0c3 commit 9d5ddb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/motion/MotionController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ bool MotionController::ShouldWakeUp() {

if (x >= -384 && x <= 384 &&
z <= 0 &&
y <= lastYForWakeUp - 128) {
y <= lastYForWakeUp - 160) {
ret = true;
}

lastYForWakeUp = (y < 128) ? y : 128;
lastYForWakeUp = (y < 0) ? y : 0;

return ret;
}
Expand Down

0 comments on commit 9d5ddb3

Please sign in to comment.