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

one motor indexer #14

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

one motor indexer #14

wants to merge 5 commits into from

Conversation

amrrao
Copy link

@amrrao amrrao commented Jan 29, 2022

No description provided.

@amrrao amrrao requested a review from b-cho January 29, 2022 02:22
Copy link
Contributor

@b-cho b-cho left a comment

Choose a reason for hiding this comment

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

Files are missing from the pull request—please add in a new commit and I can review the files. I'm not sure MotorTestSubsystem.java is necessary either, given that we've implemented the motor already.

Copy link
Contributor

@b-cho b-cho left a comment

Choose a reason for hiding this comment

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

Also please delete the empty SubsystemBase.java file in /robot/subsystems.

@@ -70,5 +75,6 @@ public RobotMap() {
HumanInput.Driver.xbox = new CustomXbox(Port.HumanInput.xboxController);
HumanInput.Operator.joystick = new CustomJoystick(Port.HumanInput.joystick);

Component.indexerMotor = new Motor("indexerMotor", false, new CANTalonFX(Port.CANMotor.indexerMotor));
Copy link
Contributor

Choose a reason for hiding this comment

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

Add comment at the end of this line:
// TODO: Need to check motor inversion

* @param motor The motor to manipulate
*/
public IndexerOff(Motor motor) {
super(motor, 0.0);
Copy link
Contributor

Choose a reason for hiding this comment

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

First argument in super() call needs to be the name of the command

}

public IndexerOff() {
super(RobotMap.Component.motor, 0.0);
Copy link
Contributor

Choose a reason for hiding this comment

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

First argument in super() call needs to be the name of the command

@b-cho b-cho linked an issue Jan 30, 2022 that may be closed by this pull request
8 tasks
@b-cho b-cho changed the title made indexer off command one motor indexer Jan 30, 2022
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.

Indexer mechanism
2 participants