-
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
Arm catapult check #64
base: main
Are you sure you want to change the base?
Conversation
|
||
public double getArmAngle() { | ||
return m_arm.getAngle(); | ||
} |
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.
This function is not used anywhere here
// 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)); |
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.
We already use almost every button on the controller, more buttons mean more chances for error. Did we practice this?
// catapult collect | ||
_operatorController.triangle() | ||
.onTrue( | ||
m_manipulator.setManipulatorStateCommand(ManipulatorState.HOLD).andThen( | ||
m_ArmFunnelSuperStructure.getSetStateCommand(ArmState.COLLECT, FunnelState.OPEN))); |
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.
Why do we need atapult collect? Can't we collect normally and when we want to score call catapult collect followed by catapult
// close funnle without opening manipulator | ||
_operatorController.povRight().onTrue( | ||
m_ArmFunnelSuperStructure.getSetStateCommand(ArmState.COLLECT, FunnelState.CLOSED)); |
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.
how is this used in the sequence?
|
||
SmartDashboard.putNumber("cataAngle", SmartDashboard.getNumber("cataAngle", 0)); |
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.
We don't use this value anywhere here
m_manipulator.setManipulatorStateCommand(ManipulatorState.HOLD).andThen( | ||
m_ArmFunnelSuperStructure.getSetStateCommand(ArmState.COLLECT, FunnelState.CLOSED)) |
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.
Why would we want to close the manipulator in the collect sequence?
@@ -0,0 +1 @@ | |||
[] |
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.
This file can be removed
No description provided.