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

Arm catapult check #64

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

Arm catapult check #64

wants to merge 7 commits into from

Conversation

Yoavpeles
Copy link
Collaborator

No description provided.

Comment on lines +103 to +106

public double getArmAngle() {
return m_arm.getAngle();
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This function is not used anywhere here

Comment on lines +182 to +198
// catapult
_operatorController.povLeft()
.onTrue(
m_ArmFunnelSuperStructure.generateSetStateCommand(ArmState.MID_CUBE, FunnelState.COLLECT)
.andThen(
m_ArmFunnelSuperStructure.getSetStateCommand(ArmState.COLLECT,
FunnelState.CLOSED)));

// catapult collect
_operatorController.triangle()
.onTrue(
m_manipulator.setManipulatorStateCommand(ManipulatorState.HOLD).andThen(
m_ArmFunnelSuperStructure.getSetStateCommand(ArmState.COLLECT, FunnelState.OPEN)));

// close funnle without opening manipulator
_operatorController.povRight().onTrue(
m_ArmFunnelSuperStructure.getSetStateCommand(ArmState.COLLECT, FunnelState.CLOSED));
Copy link
Contributor

Choose a reason for hiding this comment

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

We already use almost every button on the controller, more buttons mean more chances for error. Did we practice this?

Comment on lines +190 to +194
// catapult collect
_operatorController.triangle()
.onTrue(
m_manipulator.setManipulatorStateCommand(ManipulatorState.HOLD).andThen(
m_ArmFunnelSuperStructure.getSetStateCommand(ArmState.COLLECT, FunnelState.OPEN)));
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need atapult collect? Can't we collect normally and when we want to score call catapult collect followed by catapult

Comment on lines +196 to +198
// close funnle without opening manipulator
_operatorController.povRight().onTrue(
m_ArmFunnelSuperStructure.getSetStateCommand(ArmState.COLLECT, FunnelState.CLOSED));
Copy link
Contributor

Choose a reason for hiding this comment

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

how is this used in the sequence?

Comment on lines +98 to +99

SmartDashboard.putNumber("cataAngle", SmartDashboard.getNumber("cataAngle", 0));
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't use this value anywhere here

Comment on lines 158 to 159
m_manipulator.setManipulatorStateCommand(ManipulatorState.HOLD).andThen(
m_ArmFunnelSuperStructure.getSetStateCommand(ArmState.COLLECT, FunnelState.CLOSED))
Copy link
Contributor

Choose a reason for hiding this comment

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

Why would we want to close the manipulator in the collect sequence?

@@ -0,0 +1 @@
[]
Copy link
Contributor

Choose a reason for hiding this comment

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

This file can be removed

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