-
Notifications
You must be signed in to change notification settings - Fork 10
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
Merge Limelight, Some Auto & Climber to MAIN #16
base: main
Are you sure you want to change the base?
Conversation
speedRotController = new PIDController(0.05, 0.002, 0); | ||
speedRotController.enableContinuousInput(-180, 180); | ||
|
||
addRequirements(swerveDrive, limelight); |
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.
I don't think you should require limelight. You don't actually care if two commands that use limelight are running at the same time (and in fact may want that if you want to drive and aim your shooter at the same time)
public void climb(double speed) { | ||
leftMotor.set(speed); | ||
leftMotor.set(-speed); |
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.
leftMotor.setInverted(true)
new RunCommand(() -> this.climberSubsystem.climb(0.25), this.climberSubsystem).withTimeout(1.5), | ||
new RunCommand(() -> this.climberSubsystem.climb(-0.25), this.climberSubsystem).withTimeout(0.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.
Are your climb motors neos? You could use the encoder position that is built in to know if the climber is up, rather than relying on time.
public void climb(double speed) { | ||
leftMotor.set(speed); | ||
double speed1 = speed + 0.1; | ||
leftMotor.set(-speed1); |
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.
leftMotor.setInverted(true)
No description provided.