Skip to content

Commit

Permalink
Fix issue when we are connected to fms
Browse files Browse the repository at this point in the history
  • Loading branch information
mlists committed Mar 11, 2024
1 parent 9237c0b commit d2d4f0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities/position.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

from utilities.game import (
RED_SPEAKER_POSE,
BLUE_SPEAKER_POSE,
field_flip_pose2d,
field_flip_translation2d,
get_goal_speaker_position,
field_flip_angle,
)

Expand All @@ -23,7 +23,7 @@ def __init__(self, waypoints: list[Translation2d], face_target: bool):
last_waypoint = waypoints[-1]
self.final_heading = (
(
get_goal_speaker_position().toTranslation2d()
BLUE_SPEAKER_POSE.translation().toTranslation2d()
- field_flip_translation2d(last_waypoint)
)
.angle()
Expand Down

0 comments on commit d2d4f0f

Please sign in to comment.