Skip to content

Commit

Permalink
nationale dimanche 17h
Browse files Browse the repository at this point in the history
  • Loading branch information
DArtagnant committed May 29, 2024
1 parent 0c83b9d commit 75b86e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/strategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ FutureAction::FutureAction(

////////
const int criticalWallDistance = 25;
const int goalMinDistance = 85; // 85 pour SN10 et 95 pour SN9
const int goalMinDistance = 90; // 85 pour SN10 et 95 pour SN9 OUTDATED VALUES
const int myGoalMinDistance = 82;
const int speedmotors = 120;
const FutureAction stopRobot = FutureAction(Vector2(0, 0), 0, 0, false);
Expand Down Expand Up @@ -121,7 +121,7 @@ bool goalIsDetected(FieldProperties fP, RobotState cS) {
}

bool targetInFrontOfRobotFromFront(FieldProperties fP, RobotState cS, Vector2 tL) {
float longRobot = (fP.robotRadius() * 1.5);
float longRobot = (fP.robotRadius() * 1); // margin
return tL.y() > longRobot;
}

Expand Down

0 comments on commit 75b86e2

Please sign in to comment.