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

Roller mech #2

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Roller mech #2

wants to merge 3 commits into from

Conversation

Tonyxwu
Copy link
Collaborator

@Tonyxwu Tonyxwu commented Nov 15, 2024

I did the roller mech subsystem. Idk if it works or not but it seems correct but it just makes sense.

@Override
public void periodic() {
// This method will be called once per scheduler run
rollerMotor.set(speed);
Copy link
Member

@6kn4eakfr4s 6kn4eakfr4s Nov 15, 2024

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.

Copy link
Contributor

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;
Copy link
Contributor

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
Copy link
Contributor

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 😭

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.

3 participants