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

Command groups #33

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

Command groups #33

wants to merge 4 commits into from

Conversation

ShalevAtA
Copy link

No description provided.

� Conflicts:
�	src/main/java/frc/robot/commands/ExtendedAlgaeArm.java
�	src/main/java/frc/robot/commands/RetractAlgaeArm.java
�	src/main/java/frc/robot/subsystems/AlgaeArm.java
Copy link
Member

@tomtzook tomtzook left a comment

Choose a reason for hiding this comment

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

Some changes required.

src/main/java/frc/robot/Robot.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/Robot.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/Robot.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/Robot.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/Robot.java Show resolved Hide resolved
src/main/java/frc/robot/Robot.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/Robot.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/Robot.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/Robot.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/Robot.java Outdated Show resolved Hide resolved
Copy link
Member

@tomtzook tomtzook left a comment

Choose a reason for hiding this comment

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

one more thing

if(coralElevator.isRaised()){
return new LowerCoralElevator(coralElevator);
}
return Commands.none();
Copy link
Member

Choose a reason for hiding this comment

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

actually, using none isn't a good option, because this command will end immediately and then be restarted every 20 ms.

Use Commands.idle(coralElevator). This command won't end unless overridden.

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