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

Shooter #4

Closed
wants to merge 48 commits into from
Closed

Shooter #4

wants to merge 48 commits into from

Conversation

penguin212
Copy link
Contributor

No description provided.

src/main/java/frc/robot/subsystems/ShooterSubsystem Outdated Show resolved Hide resolved
src/main/java/frc/robot/subsystems/ShooterSubsystem Outdated Show resolved Hide resolved
src/main/java/frc/robot/subsystems/ShooterSubsystem Outdated Show resolved Hide resolved
src/main/java/frc/robot/subsystems/ShooterSubsystem Outdated Show resolved Hide resolved
src/main/java/frc/robot/subsystems/ShooterSubsystem Outdated Show resolved Hide resolved
rotationEncoder.setPosition(0);
}

if(currentState == FIRING && (shooterSensor.get() < tolerance)){ //when there is no note
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The note may not be visible but still in the shooter, you will most likely need to add a delay (< .5s) to ensure the note leaves the shooter before you stop powering the flywheels and feed belts.

src/main/java/frc/robot/subsystems/ShooterSubsystem Outdated Show resolved Hide resolved

//change later
int IDNUMBER = 10; //so I remember to change them later
double speed = 0.1;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if this is a constant, capitalize it, otherwise move it to a different part of the variable declarations

src/main/java/frc/robot/subsystems/ShooterSubsystem Outdated Show resolved Hide resolved
src/main/java/frc/robot/subsystems/ShooterSubsystem Outdated Show resolved Hide resolved
Copy link
Contributor Author

@penguin212 penguin212 left a comment

Choose a reason for hiding this comment

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

Also look at the old comments that haven't been resolved yet

}

//once driver presses button to shoot (should test with a solo button after shooter state called)
private void shootNote(){
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should be public so that code outside of this class can access 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.

3 participants