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

Algae commands for Spin Roller and Extend Intake. #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

harmansgrover
Copy link

I made the commands.

I made the extend intake command thing to control the pivot speed or whatever.
Made the spin roller command for the roller speed.
private final AlgaeIntake algaeIntake;
private final double speed;

public ExtendIntake(AlgaeIntake algaeIntake, double speed) {
Copy link
Member

Choose a reason for hiding this comment

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

Remember, a constructor must have the exact same name as its class - ExtendIntakeCommand in this instance.

import edu.wpi.first.wpilibj2.command.Command;
import frc.robot.subsystems.algaeIntake.AlgaeIntake;

public class ExtendIntakeCommand extends Command{
Copy link
Member

Choose a reason for hiding this comment

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

Not critical but for visual stuff - have a space in between Command and the opening curly brace.

Suggested change
public class ExtendIntakeCommand extends Command{
public class ExtendIntakeCommand extends Command {

Comment on lines +8 to +10
private final double speed;

public SpinRoller(AlgaeIntake algaeIntake, double speed) {
Copy link
Member

Choose a reason for hiding this comment

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

Same thing I said with the other class - the constructor has to have the exact same name as the class (SpinRollerCommand).

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.

2 participants