Skip to content

PID Ronit#13

Draft
ShayanHasNo wants to merge 5 commits intomainfrom
distanceShootingPIDTask
Draft

PID Ronit#13
ShayanHasNo wants to merge 5 commits intomainfrom
distanceShootingPIDTask

Conversation

@ShayanHasNo
Copy link
Copy Markdown
Contributor

No description provided.

rkris28 and others added 5 commits October 8, 2025 20:34
Shooting Testing
Deleted the TunableNumber utility and removed all shooter tuning parameters from ShooterConstants. Shooter subsystem and IO classes were updated to use static constants and simplified velocity handling. Added fullSpeed command to Shooter and updated Orchestrator to use it for fastMode.
@ShayanHasNo ShayanHasNo changed the title Review of code PID Ronit Oct 23, 2025
@ShayanHasNo ShayanHasNo marked this pull request as draft October 23, 2025 04:02
Copy link
Copy Markdown
Contributor Author

@ShayanHasNo ShayanHasNo left a comment

Choose a reason for hiding this comment

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

minor errors, orchestrator functions needs to be labled properly and needs some changes, other than that the code looks lgtm

public static final double REVERSE_SHOOTER_PERCENT = -0.5;

public static final int SHOOTER_MOTOR_ID = 8;
public static final double SPINUP_SECONDS = 0.6;
Copy link
Copy Markdown
Contributor Author

@ShayanHasNo ShayanHasNo Oct 23, 2025

Choose a reason for hiding this comment

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

this is unnecessary

spinUpDistance(420.0),
Commands.sequence(
intakeIfNeeded(),
Commands.waitSeconds(ShooterConstants.SPINUP_SECONDS),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

use the atSetpoint boolean and commands.wait method to wait until the flywheel is up to speed

}
public Command shootCycleDistance() {
return Commands.parallel(
spinUpDistance(420.0),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

dont use this, this is a deprecated function we are NOT going to use anymore. instead have rpm be passed in as an arguement

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