-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this 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)); |
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 ( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
No description provided.