-
Notifications
You must be signed in to change notification settings - Fork 0
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
Belt Subsystem with sensors #3
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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?
No, its in the RobotContainer to stop and start
|
in breakRoller, first set speed to 0 to stop
There was a problem hiding this 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); | ||
; |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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); | ||
|
||
})); | ||
|
There was a problem hiding this comment.
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.
Has subsystem for Belt, uses sensors as well