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 #17

Merged
merged 26 commits into from
Jan 25, 2024
Merged

Intake #17

merged 26 commits into from
Jan 25, 2024

Conversation

AraReighard
Copy link
Member

You can press the A button to run the intake. (intake motor speed may need to be flipped, but that's for later)

Added INTAKE_MOTOR_ID with a temp value of 0.
Assigned intake object motor id from constants
Added INTAKE_MOTOR_SPEED with a temp value of 0.5
Added RunIntake() method and its contents run the motor
Added intake.runIntake() and intake.stop() to their respective methods.
@AraReighard AraReighard linked an issue Jan 23, 2024 that may be closed by this pull request
@AraReighard AraReighard removed their assignment Jan 23, 2024
quackitsquinn
quackitsquinn previously approved these changes Jan 23, 2024
Copy link
Member

@quackitsquinn quackitsquinn left a comment

Choose a reason for hiding this comment

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

looks good, thank you for documenting everything.

@AraReighard AraReighard reopened this Jan 23, 2024
Copy link
Member

@willitcode willitcode left a comment

Choose a reason for hiding this comment

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

See individual code comments.

src/main/java/frc/robot/Constants.java Show resolved Hide resolved
src/main/java/frc/robot/subsystems/Intake.java Outdated Show resolved Hide resolved
src/main/java/frc/robot/commands/RunIntake.java Outdated Show resolved Hide resolved
Added INTAKE_LIMIT_SWITCH_DIO_PORT to constants.
Added limitSwitch object to Intake
Added getIntakeLimitSwitch() which returns the value of the limit switch for intake.
From getIntakeLimitSwitch() to getLimitSwitch()
RunIntake isFinished() returns the value of the intake's limit switch
Changed it from a Spark object to a CANSparkMax object.
Copy link
Member

@willitcode willitcode left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks!

Copy link
Member

@willitcode willitcode left a comment

Choose a reason for hiding this comment

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

Sorry...

Copy link
Member

@willitcode willitcode left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks! Sorry about all the change-request chaos.

@willitcode willitcode merged commit f6b66a4 into main Jan 25, 2024
2 checks passed
@willitcode willitcode deleted the intake branch January 25, 2024 01:16
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.

Implement Intake
3 participants