Skip to content

Commit

Permalink
Merge pull request #139 from BlueAndi/bugfix/lineFollowerMotorCalib
Browse files Browse the repository at this point in the history
Fixed Motor Calibration by going to the correct state
  • Loading branch information
gabryelreyes authored Jul 23, 2024
2 parents 2fb54ae + f88f454 commit 9374349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/APPLineFollower/src/StartupState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ void StartupState::process(StateMachine& sm)
Board& board = Board::getInstance();
IButton& buttonA = board.getButtonA();

/* Start line sensor calibration? */
/* Start motor calibration? */
if (true == Util::isButtonTriggered(buttonA, m_isButtonAPressed))
{
sm.setState(&LineSensorsCalibrationState::getInstance());
sm.setState(&MotorSpeedCalibrationState::getInstance());
}

/* If the max. motor speed calibration is done, it will be possible to
Expand Down

0 comments on commit 9374349

Please sign in to comment.