-
Notifications
You must be signed in to change notification settings - Fork 1
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
Shooter #4
Conversation
rotationEncoder.setPosition(0); | ||
} | ||
|
||
if(currentState == FIRING && (shooterSensor.get() < tolerance)){ //when there is no note |
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.
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.
|
||
//change later | ||
int IDNUMBER = 10; //so I remember to change them later | ||
double speed = 0.1; |
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.
if this is a constant, capitalize it, otherwise move it to a different part of the variable declarations
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.
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(){ |
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.
This should be public so that code outside of this class can access it
GitHub checks
No description provided.