Skip to content

Conversation

swaswa999
Copy link
Collaborator

Has subsystem for Belt, uses sensors as well

@swaswa999 swaswa999 requested review from 0aax, 6kn4eakfr4s, siyoyoCode and CrolineCrois and removed request for 0aax November 20, 2024 19:01
Copy link
Member

@6kn4eakfr4s 6kn4eakfr4s left a comment

Choose a reason for hiding this comment

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

I don't see where you stop the belt. Is the belt just always on?

@swaswa999
Copy link
Collaborator Author

swaswa999 commented Nov 21, 2024 via email

in breakRoller, first set speed to 0 to stop
Copy link
Member

@6kn4eakfr4s 6kn4eakfr4s left a comment

Choose a reason for hiding this comment

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

LGTM

mechController.square().onTrue(new InstantCommand(() -> {
if (beltSwitch.get()) {
beltSubsystem.breakRoller(true);
;
Copy link
Contributor

Choose a reason for hiding this comment

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

is this semicolon supposed to be here

public BeltSubsystem() {

mainBeltMotor = new WPI_TalonSRX(3);
mainBeltMotor.setNeutralMode(NeutralMode.Coast); // turning braking to Coast
Copy link
Contributor

@CrolineCrois CrolineCrois Dec 3, 2024

Choose a reason for hiding this comment

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

You probably want the roller to be perma on brake. Otherwise the gamepiece might slip out.

beltSubsystem.setBelt(0.2);

}));

Copy link
Contributor

Choose a reason for hiding this comment

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

you will want an option to run the belt backwards in case of unforseen circumstances.

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.

4 participants