diff --git a/internal/simctl/handler_robot_count.go b/internal/simctl/handler_robot_count.go index 4225b31..320bc39 100644 --- a/internal/simctl/handler_robot_count.go +++ b/internal/simctl/handler_robot_count.go @@ -39,6 +39,7 @@ func (r *RobotCountHandler) handleRobotCount() { } if *r.c.lastRefereeMsg.Command != referee.Referee_HALT && + *r.c.lastRefereeMsg.Command != referee.Referee_STOP && len(r.c.lastTrackedFrame.TrackedFrame.Balls) > 0 && math.Abs(float64(*r.c.lastTrackedFrame.TrackedFrame.Balls[0].Pos.X)) < 2 { // Rule: The ball must be at least 2 meters away from the halfway line.