Skip to content

Made hopper only spin when shooter is spinning fast enough.#113

Open
The-Cool-Python-Guy wants to merge 3 commits intomainfrom
RM_Added_Hopper_Controls
Open

Made hopper only spin when shooter is spinning fast enough.#113
The-Cool-Python-Guy wants to merge 3 commits intomainfrom
RM_Added_Hopper_Controls

Conversation

@The-Cool-Python-Guy
Copy link
Contributor

No description provided.

@The-Cool-Python-Guy
Copy link
Contributor Author

Note: this still needs to be tested on the real robot.

return activeTargets.hopperSpin;
return activeTargets.hopperSpin
&& robotContainer.getShooterSubsystem().getVelocity() < Constants.SHOOTER_THRESHOLD
&& activeTargets.shooterVelocityRpm < Constants.SHOOTER_THRESHOLD;
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 understand this part - if we set the speed to less than 2k then the hopper would never start?


@Override
public double getEncoderVelocity() {
return 0; // example
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 we need to fix this right now, but even a mock io can get the values from the inputs, same as other IOs.

Copy link
Contributor

@armadilloz armadilloz left a comment

Choose a reason for hiding this comment

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

Still a couple of unresolved comments, specifically around why should we consider the target speed

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