Skip to content

Adds preliminary pathplanner example for vision#2

Open
scottrehlander wants to merge 1 commit into
YAGSL-visionfrom
feature/pathplanner-vision
Open

Adds preliminary pathplanner example for vision#2
scottrehlander wants to merge 1 commit into
YAGSL-visionfrom
feature/pathplanner-vision

Conversation

@scottrehlander
Copy link
Copy Markdown

@scottrehlander scottrehlander commented Feb 19, 2025

This pull request is a (somewhat) working example of using the pathplanner "driveToPose" function from the YAGSL. Since the command that it returns relies on the targetPose being set in SupplyAprilTagPose, we must use a "DeferredCommand". If we don't, the targetPose is set in the pathplanner command before it is set by the callback in SupplyAprilTagPose. The rotation does appear to work with driveToPose - but we should probably test how close it can be to the target pose translation before it prevents rotation. Hopefully it's close enough that we could just skip the drive and just execute a Spin command.

Notes:

  • Most of the interesting changes are in the DriveToReef command.
  • I also modified the driving strategy in the RobotContainer so that I could rotate the robot with the joystick

This pull request is informational only, I am not planning to merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant