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 Subsystem #8

Closed
ebay-kid opened this issue Jan 27, 2024 · 3 comments · Fixed by #10
Closed

Intake Subsystem #8

ebay-kid opened this issue Jan 27, 2024 · 3 comments · Fixed by #10
Assignees
Labels
feature New feature or request intake Related to the intake subsystem

Comments

@ebay-kid
Copy link
Member

2 Motors (on CANSparkMax), one should be inverted from the other.
Motors should follow each other
Trigger power when button is pressed (button # TBD)

@ebay-kid
Copy link
Member Author

ebay-kid commented Feb 5, 2024

More specific info:

  • Two main intake motors in a top-down, one following the other (for consistency, make the top motor the "follower", and the bottom motor the "leader")
  • One pivot motor to bring in the intake
  • Assume a limit switch for calibration purposes (bringing intake in)
  • Conveyor belt (one motor)

Basic requirements:

  • Setting speed on all motors (note: for the two main intake motors, only one method is needed - this method should only set the speed on the motor designated as the "leader")
  • Getter for the position of the pivot motor
  • Method to set, and another to reset encoder on the pivot motor as well
  • Getter on the limit switch value
  • Make a class variable to store the PIDController on the integrated motor controller (cansparkmax) so we can position the pivot motor, no other motors need this. Please default the PID values to all 0, we can tune later
  • Setter for the PIDController reference on the pivot (should take in an angle in degrees and send to the controller as a position ControlType)
  • Getter for all three motor's currents (we're not sure which to use yet, just make a getter for all 3)

@ebay-kid ebay-kid added feature New feature or request intake Related to the intake subsystem labels Feb 5, 2024
@siIverfish
Copy link
Contributor

"avni is working on this" - avni

@ItsAvs
Copy link
Contributor

ItsAvs commented Feb 6, 2024

finished code for intake, on separate branch; I was a little confused on the PID class variable so that may be incorrect

@ItsAvs ItsAvs self-assigned this Feb 6, 2024
@ItsAvs ItsAvs linked a pull request Feb 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request intake Related to the intake subsystem
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants