Skip to content

Conversation

@the-sun-x
Copy link
Contributor

No description provided.

public static final int ANGLER_MOTOR_ID = 6;
public static final int HOPPER_MOTOR_ID = 4;
public static final int FEEDER_MOTOR_ID = 5;
public static final int SHOOTER_MOTOR_ID = 8;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should add a similar pair of constants to the constantsTestbed so that we can test on the testbed (even if they are commented out or set to some invalid value


}

public void setSpeed(double speed) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a comment on the units the method expects (this actually takes power value in -1 to +1)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

io.stopMotor();
}

public void setPidPosition(double position) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think the shooter ever expects a position

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

io.setPidPosition(position);
}

public void setPidVelocity(double velocity) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a comment that explains the expected units (this is speed in RPM)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

import frc.robot.subsystems.ShooterSubsystem;
import frc.robot.utils.logging.commands.LoggableCommand;

public class SpinShooter extends LoggableCommand{
Copy link
Contributor

Choose a reason for hiding this comment

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

Two comments on the command:

  1. The command needs a timeout
  2. The command should rely on speed (velocity) to set for the subsystem, so that we can handle whatever calculation we need that ends up with the auto-aiming.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

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.

2 participants