Skip to content

Commit 8374db1

Browse files
author
SSL_Linux_Laptop
committed
change erro to warning
1 parent ebf7d4e commit 8374db1

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

utama_core/config/field_params.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ def __post_init__(self):
149149
)
150150

151151
GREAT_EXHIBITION_FIELD_DIMS = FieldDimensions(
152-
full_field_half_length=2.0,
153-
full_field_half_width=1.5,
154-
half_defense_area_depth=0.4,
155-
half_defense_area_width=0.8,
156-
half_goal_width=0.5,
152+
full_field_half_length=1.5,
153+
full_field_half_width=1.125,
154+
half_defense_area_depth=0.25,
155+
half_defense_area_width=0.5,
156+
half_goal_width=0.4,
157157
center_circle_radius=0.3,
158158
)

utama_core/config/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
### REAL CONTROLLER SETTINGS ###
3131
BAUD_RATE = 115200
32-
PORT = "/dev/ttyUSB0"
32+
PORT = "/dev/ttyACM0"
3333
TIMEOUT = 0.1
3434
KICKER_COOLDOWN_TIME = 10 # in seconds to prevent kicker from being actuated too frequently
3535
KICKER_COOLDOWN_TIMESTEPS = int(KICKER_COOLDOWN_TIME * CONTROL_FREQUENCY) # in timesteps

utama_core/team_controller/src/controllers/real/real_robot_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def _add_robot_command(self, command: RobotCommand, robot_id: int) -> None:
185185
if robot_id in self._vision_to_cmd_mapping:
186186
robot_id = self._vision_to_cmd_mapping[robot_id]
187187
elif self._sharing_friendly_transmitter:
188-
raise ValueError(
188+
warnings.warn(
189189
f"No explicit mapping provided for opponent {robot_id} on shared transmitter setup. Populate the vision_to_cmd_mapping to resolve this issue."
190190
)
191191
if robot_id in self._assigned_mapping:

0 commit comments

Comments
 (0)