File tree Expand file tree Collapse file tree
team_controller/src/debug_utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ def turn_on_spot(
6363 PIVOT_RADIUS = ROBOT_RADIUS + BALL_RADIUS # distance from robot center to ball center at contact
6464
6565 robot = game .friendly_robots [robot_id ]
66- ball = game .ball
6766
6867 turn = move (
6968 game = game ,
@@ -75,7 +74,7 @@ def turn_on_spot(
7574 )
7675
7776 # Pivot around the ball when the robot is in dribbler contact (IR or visual proximity).
78- in_contact = robot .has_ball or ( ball is not None and robot . p . distance_to ( ball . p . to_2d ()) < PIVOT_RADIUS )
77+ in_contact = robot .has_ball
7978 if in_contact :
8079 angular_vel = turn .angular_vel
8180 local_left_vel = - angular_vel * PIVOT_RADIUS
Original file line number Diff line number Diff line change @@ -79,9 +79,9 @@ def send_robot_commands(self):
7979N_FRIENDLY = 4
8080IS_YELLOW = True
8181LOOP_HZ = 60
82- MAX_VEL = 0.1
83- FAST_VEL = 0.5
84- MAX_ANG_VEL = 1
82+ MAX_VEL = 0.5
83+ FAST_VEL = 2
84+ MAX_ANG_VEL = 2.5
8585CONNECTION_TIMEOUT = ROBOT_FEEDBACK_CONNECTION_TIMEOUT_SECONDS
8686
8787BG = "#1a1a1a"
You can’t perform that action at this time.
0 commit comments