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

Intake functions & commands #5

Open
7 of 20 tasks
cyndiac opened this issue Nov 7, 2023 · 0 comments
Open
7 of 20 tasks

Intake functions & commands #5

cyndiac opened this issue Nov 7, 2023 · 0 comments
Assignees

Comments

@cyndiac
Copy link
Contributor

cyndiac commented Nov 7, 2023

All work is in RobotContainer.java, subsystems/Intake.java and commands/IntakeCone.java, IntakeCube.java, OuttakeGamePiece.java

Intake.java

  • motor initialization (CAN ID 6)
  • motor current limit
  • motor in brake mode
  • functions within Intake.java:
    • set____Power()
    • stopIntake()
    • setGamePieceType(int newGamePiece)

Commands

  • commands/IntakeCone.java -- init - set game piece to cone, set intake power
  • commands/IntakeCone.java -- end - set to holding power
  • commands/IntakeCube.java -- init - set game piece to cube, set power
  • commands/IntakeCube.java -- end - set to holding power
  • commands/OuttakePiece.java -- init - set power
  • commands/OuttakePiece.java -- end - set to holding power (in case of incomplete outtake)

Map commands to joystick in RobotContainer.java

  • declare all commands before RobotContainer init (~line 30)
  • configureBindings():
    • IntakeCone while A is held down
    • IntakeCube while B is held down
    • OuttakePiece while codriver X is held down
    • OuttakePiece while driver leftBumper is held down
    • StopIntake when Y is pressed (onTrue) -- should almost never be necessary, but nice to have in case
@WaterBear695264 WaterBear695264 self-assigned this Nov 8, 2023
@SadieBurris SadieBurris self-assigned this Nov 8, 2023
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

No branches or pull requests

3 participants