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 homing function #19

Open
jkleiber opened this issue Sep 13, 2023 · 0 comments
Open

Arm homing function #19

jkleiber opened this issue Sep 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jkleiber
Copy link
Member

Summary
The arm uses a relative encoder to determine its position. Thus, we need a homing command that runs whenever the robot gets enabled to reset that encoder position to 0. This will be determined by current limits, so current limits at the hard stops need to be understood as well.

Work Scope

  • Set the current limits correctly for running the arm into the hard stops
  • Develop a command for homing the arm. This should be as simple as creating a new ArmMode called Home. When in Home mode during periodic(), the arm should run at a fixed power in the upward direction (shoot/idle position) until a current limit is hit. Then the encoder should reset and the arm should go back into Idle mode.
  • Make a button binding for the arm homing command (in case it loses its home in match)
  • Run the arm homing command in enabledInit (or teleopInit and autoInit if this is a function that doesn't exist)

Verification

  • Demonstrate that the arm homes in teleop
@jkleiber jkleiber added the enhancement New feature or request label Sep 13, 2023
@jkleiber jkleiber added this to the Rumble in the Roads milestone Sep 29, 2023
@jkleiber jkleiber removed this from the Rumble in the Roads milestone Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant