Skip to content

Commit 3b99ac9

Browse files
committed
Put robots onto different sides of the field
1 parent 521e095 commit 3b99ac9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/simctl/maintain_robot_count.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ func (r *RobotCountMaintainer) updateRobotCount(robots []*tracker.TrackedRobot,
6161
}
6262
if len(robots) < maxRobots {
6363
y := float64(*r.c.fieldSize.FieldWidth) / 2000.0
64+
if team == referee.Team_BLUE {
65+
y *= -1
66+
}
6467
x := 0.1
6568
for i := 0; i < 100; i++ {
6669
pos := geom.NewVector2(x, y)

0 commit comments

Comments
 (0)