Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Team comm: Update magenta, cyan to red, blue
Browse files Browse the repository at this point in the history
  • Loading branch information
jaagut committed Oct 26, 2023
1 parent b278558 commit e0eb742
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def __init__(self, own_team_color: TeamColor):

self.proto_to_team_data_team_mapping = {
Proto.Team.UNKNOWN_TEAM: RobotRelative.ROBOT_UNDEFINED,
Proto.Team.BLUE: RobotRelative.ROBOT_CYAN,
Proto.Team.RED: RobotRelative.ROBOT_MAGENTA
Proto.Team.BLUE: RobotRelative.ROBOT_BLUE,
Proto.Team.RED: RobotRelative.ROBOT_RED
}
self.state_to_proto_team_mapping = {
RobotAttributes.TEAM_OWN: Proto.Team.RED if own_team_color == TeamColor.RED else Proto.Team.BLUE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def test_convert_robots(snapshot, message_with_other_robots, team_data_with_head
team_data = convert_from_message(message_with_other_robots, team_data_with_header)

assert team_data.robots.header == team_data_with_header.header
assert team_data.robots.robots[0].type == RobotRelative.ROBOT_CYAN
assert team_data.robots.robots[1].type == RobotRelative.ROBOT_MAGENTA
assert team_data.robots.robots[0].type == RobotRelative.ROBOT_BLUE
assert team_data.robots.robots[1].type == RobotRelative.ROBOT_RED

assert str(team_data.robots) == snapshot

Expand Down

0 comments on commit e0eb742

Please sign in to comment.