Skip to content

Commit

Permalink
Added safety point to help avoid bad starting positions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsunami014 committed Mar 15, 2024
1 parent 94a2f6c commit ec2665f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
14 changes: 12 additions & 2 deletions autonomous/autonomous.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,12 @@ class Centre5Centre4(AutoBase):
def __init__(self) -> None:
note_paths = [
Path(
[PathPositions.avoid_stage_S, NotePositions.Centre5], face_target=False
[
PathPositions.avoid_starting_faults,
PathPositions.avoid_stage_S,
NotePositions.Centre5,
],
face_target=False,
),
Path(
[
Expand Down Expand Up @@ -213,7 +218,12 @@ class Centre5Centre4Centre3(AutoBase):
def __init__(self) -> None:
note_paths = [
Path(
[PathPositions.avoid_stage_S, NotePositions.Centre5], face_target=False
[
PathPositions.avoid_starting_faults,
PathPositions.avoid_stage_S,
NotePositions.Centre5,
],
face_target=False,
),
Path(
[
Expand Down
1 change: 1 addition & 0 deletions utilities/position.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,4 @@ class PathPositions:
stage_transition_S_entry = Translation2d(13.0, 2.5)
avoid_wall = Translation2d(10.80, 6.55)
avoid_stage_S = Translation2d(10.66, 1.40)
avoid_starting_faults = Translation2d(14.429, 2.946)

0 comments on commit ec2665f

Please sign in to comment.