raisewake: Change names in line with the style guide

This commit is contained in:
Finlay Davidson
2023-03-05 15:34:03 +01:00
committed by Riku Isokoski
parent 49ad5be742
commit e55a76f740
3 changed files with 9 additions and 9 deletions

View File

@@ -29,22 +29,22 @@ void MotionController::Update(int16_t x, int16_t y, int16_t z, uint32_t nbSteps)
this->nbSteps = nbSteps;
}
bool MotionController::Should_RaiseWake(bool isSleeping) {
bool MotionController::ShouldRaiseWake(bool isSleeping) {
if ((x + 335) <= 670 && z < 0) {
if (not isSleeping) {
if (!isSleeping) {
if (y <= 0) {
return false;
}
lastYForWakeUp = 0;
lastYForRaiseWake = 0;
return false;
}
if (y >= 0) {
lastYForWakeUp = 0;
lastYForRaiseWake = 0;
return false;
}
if (y + 230 < lastYForWakeUp) {
lastYForWakeUp = y;
if (y + 230 < lastYForRaiseWake) {
lastYForRaiseWake = y;
return true;
}
}