Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replacement basic auto #54

Merged
merged 2 commits into from
Oct 27, 2023
Merged

replacement basic auto #54

merged 2 commits into from
Oct 27, 2023

Conversation

minhnguyenbhs
Copy link
Contributor

No description provided.

Copy link
Member

@jkleiber jkleiber left a comment

Choose a reason for hiding this comment

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

Just one comment and then I think we're good. It could be good to also cancel the autonomous command in teleopInit

@@ -64,5 +67,9 @@ private void configureButtonBindings() {

}

public Command getAutonomous() {
return new Auto(arm, drive, SmartDashboard.getNumber("Auto Drive Time", 5));
Copy link
Member

Choose a reason for hiding this comment

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

Can we make this not on smartdashboard (just make it a constant)?

Copy link
Member

Choose a reason for hiding this comment

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

B bot should travel 35 feet in 5 seconds at 50% speed, this probably should be a smaller value btw

Copy link
Member

Choose a reason for hiding this comment

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

Isn't ChassisSpeeds in m/s? If so then this would be 2.5 meters of movement approximately

Copy link
Member

Choose a reason for hiding this comment

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

ohhh, ok that's fine just very slow

new InstantCommand(() -> arm.setMode(Mode.IDLE)),
new ParallelRaceGroup(
new ArmMove(arm, Mode.SHOOT_HIGH).raceWith(new WaitCommand(1.0)),
new ParallelRaceGroup (
Copy link
Member

Choose a reason for hiding this comment

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

Is ParallelRaceGroup correct here? Will ArmMove complete and end the race?

Copy link
Member

Choose a reason for hiding this comment

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

ArmMove never is finished, so it shouldn't win the race against the wait

Copy link
Member

@jkleiber jkleiber left a comment

Choose a reason for hiding this comment

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

Approved

@minhnguyenbhs minhnguyenbhs merged commit 20ec770 into main Oct 27, 2023
@minhnguyenbhs minhnguyenbhs deleted the b-team-auto-replacement branch October 27, 2023 20:00
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