Skip to content

Commit

Permalink
Making Jorn happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Luuk committed May 8, 2024
1 parent f675cc9 commit 2b80f60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roboteam_ai/src/utilities/StrategyManager.cpp
Expand Up @@ -10,7 +10,7 @@ void StrategyManager::setCurrentGameState(RefCommand command, RefCommand nextCom
lastCommand = command;
return;
}

if (command == RefCommand::STOP && (nextCommand == RefCommand::PREPARE_KICKOFF_THEM || nextCommand == RefCommand::PREPARE_KICKOFF_US ||
nextCommand == RefCommand::PREPARE_PENALTY_THEM || nextCommand == RefCommand::PREPARE_PENALTY_US)) {
command = nextCommand;
Expand All @@ -35,7 +35,7 @@ void StrategyManager::setCurrentGameState(RefCommand command, RefCommand nextCom

if ((currentGameState.commandId == RefCommand::DIRECT_FREE_THEM || currentGameState.commandId == RefCommand::DIRECT_FREE_US ||
currentGameState.commandId == RefCommand::KICKOFF_US || currentGameState.commandId == RefCommand::KICKOFF_THEM) &&
ballOpt.has_value() && (ballOpt.value()->velocity.length() > stp::control_constants::BALL_GOT_SHOT_LIMIT || currentGameState.timeLeft < -0.5)) {
ballOpt.has_value() && (ballOpt.value()->velocity.length() > stp::control_constants::BALL_GOT_SHOT_LIMIT || currentGameState.timeLeft < 0.0)) {
currentGameState = getGameStateForRefCommand(RefCommand::NORMAL_START);
lastCommand = command;
return;
Expand Down

0 comments on commit 2b80f60

Please sign in to comment.