Skip to content

fixed and added swerve methods - #79

Open
escapee-86 wants to merge 2 commits into
mainfrom
pre-dcmp/fixing-swerve-methods
Open

fixed and added swerve methods#79
escapee-86 wants to merge 2 commits into
mainfrom
pre-dcmp/fixing-swerve-methods

Conversation

@escapee-86

Copy link
Copy Markdown
Contributor

No description provided.

@escapee-86
escapee-86 marked this pull request as ready for review March 28, 2026 17:38
@escapee-86
escapee-86 requested a review from HrehaanB March 28, 2026 17:38
@HrehaanB

Copy link
Copy Markdown
Contributor

good to go!

everything finally works
i think i lost a few braincells today
@escapee-86

Copy link
Copy Markdown
Contributor Author

good to go? (needs testing on robot but fully works in sim)

public Command roboToPose(Pose2d desPose, double tolerance) {
return Commands.defer(() -> {
Pose2d initPose = getState().Pose;
return Commands.runOnce(() -> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is absolutely not going to work. the previous code using Commands.run() is correct. With runOnce, you only calculate once so you never update the controllers after the robot moves

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.

3 participants