-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
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) { |
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.
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{ |
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.
Not critical but for visual stuff - have a space in between Command
and the opening curly brace.
public class ExtendIntakeCommand extends Command{ | |
public class ExtendIntakeCommand extends Command { |
private final double speed; | ||
|
||
public SpinRoller(AlgaeIntake algaeIntake, double 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.
Same thing I said with the other class - the constructor has to have the exact same name as the class (SpinRollerCommand
).
I made the commands.