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

Emily bottom arm #25

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

Emily bottom arm #25

wants to merge 26 commits into from

Conversation

emilycxliu
Copy link
Contributor

Finished bottom arm functionality- can be set to 90 and 80 degrees

if (SubsystemChecker.canSubsystemConstruct(SubsystemType.ArmSubsystem)) {
System.out.println("*****robotInit*****");
new WaitCommand(5).andThen(new SyncArmEncoders()).schedule();
//new WaitCommand(10).andThen(new CheckArmEncodersSync()).schedule();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Both commands require the ArmSubsystem and one of them is cancelling the other.

This will detach the requirement from the WaitCommand(10):
new WaitCommand(10).andThen(new ScheduleCommand(new CheckArmEncodersSync())).schedule();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added that line, it works

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.

None yet

3 participants