-
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
Roller mech #2
base: main
Are you sure you want to change the base?
Roller mech #2
Conversation
@Override | ||
public void periodic() { | ||
// This method will be called once per scheduler run | ||
rollerMotor.set(speed); |
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 would recommend writing a method to set the speed instead of putting it in periodic and set speed every time even when there's no new updates.
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.
bump
@@ -19,19 +23,20 @@ public class RobotContainer { | |||
|
|||
// Controls defined | |||
private final CommandPS4Controller mechController; | |||
private final RollerSubsystem rollerSubsystem; | |||
private final RollerCommands rollerCommand; |
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.
remove if not used
speed = newSpeed; | ||
} | ||
/** | ||
* An example method querying a boolean state of the subsystem (for example, a |
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.
update or delete the comments pls 😭
I did the roller mech subsystem. Idk if it works or not but it seems correct but it just makes sense.