Skip to content

Commit 289334a

Browse files
author
SSL_Linux_Laptop
committed
gerf day 2 changes
1 parent b743051 commit 289334a

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

utama_core/skills/src/utils/move_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

utama_core/team_controller/src/debug_utils/telop_gui.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ def send_robot_commands(self):
7979
N_FRIENDLY = 4
8080
IS_YELLOW = True
8181
LOOP_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
8585
CONNECTION_TIMEOUT = ROBOT_FEEDBACK_CONNECTION_TIMEOUT_SECONDS
8686

8787
BG = "#1a1a1a"

0 commit comments

Comments
 (0)