Skip to content

Commit

Permalink
Merge branch 'chris_repulser_field_nav_experiment' of https://github.…
Browse files Browse the repository at this point in the history
…com/RobotCasserole1736/RobotCasserole2025SwerveBase into chris_repulser_field_nav_experiment
  • Loading branch information
gerth2 committed Oct 2, 2024
2 parents 2144a8c + 9856962 commit ff5a639
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivetrain/controlStrategies/autoDrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from utils.singleton import Singleton
from navigation.repulsorFieldPlanner import RepulsorFieldPlanner
from drivetrain.drivetrainPhysical import MAX_DT_LINEAR_SPEED
from utils.allianceTransformUtils import transform


GOAL_PICKUP = Pose2d.fromFeet(40,5,Rotation2d.fromDegrees(0.0))
Expand Down Expand Up @@ -46,9 +47,9 @@ def update(self, cmdIn: DrivetrainCommand, curPose: Pose2d) -> DrivetrainCommand

# Handle command changes
if(self._toPickup):
self._rfp.setGoal(GOAL_PICKUP)
self._rfp.setGoal(transform(GOAL_PICKUP))
elif(self._toSpeaker):
self._rfp.setGoal(GOAL_SPEAKER)
self._rfp.setGoal(transform(GOAL_SPEAKER))
elif(not self._toSpeaker and not self._toPickup):
self._rfp.setGoal(None)

Expand Down
1 change: 1 addition & 0 deletions simgui.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
"left": 150,
"right": 2961,
"top": 79,
"units": "meters",
"width": 16.541748046875,
"window": {
"visible": true
Expand Down

0 comments on commit ff5a639

Please sign in to comment.