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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Shooter #4

wants to merge 8 commits into from

Conversation

vichik123
Copy link

This pull request was made to operate the shooter subsystem. It includes the button that shoots the ball (RT), and the command Fire. The shooter subsystem has 3 TalonSRX controllers for the 3 motors.

adamv17 and others added 4 commits September 12, 2021 19:30
This version of the code doesn't include final PID values, and the algorithm to find the required speed of the motor.
Shoot didn't sound as cool, due to the name of the Shooter in the Shoot class (sniper). Hence, it was changed to Fire.
Documentation for the Shooter and Fire classes
The button that was set is the right toggle, and when held it shoots :).
src/main/java/frc/robot/Constants.java Show resolved Hide resolved
src/main/java/frc/robot/Constants.java Show resolved Hide resolved
src/main/java/frc/robot/Constants.java Show resolved Hide resolved
src/main/java/frc/robot/Ports.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/RobotContainer.java Outdated Show resolved Hide resolved
@Override
public void execute() {
sniper.setVelocity(targetSpeed);
RobotContainer.xboxController.setRumble(GenericHID.RumbleType.kLeftRumble, 1);
Copy link
Member

Choose a reason for hiding this comment

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

Use lambda

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.

4 participants