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

jettison improvement #212

Merged
merged 2 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/shooter.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ShooterComponent:
FLYWHEEL_TOLERANCE = 1 # rps

FLYWHEEL_SHOOTING_SPEED = 75
FLYWHEEL_JETTISON_SPEED = 10
FLYWHEEL_JETTISON_SPEED = 20
FLYWHEEL_RAMP_TIME = 1

MAX_INCLINE_ANGLE = 1.045 # ~60 degrees
Expand All @@ -39,7 +39,7 @@ class ShooterComponent:
INCLINATOR_VELOCITY_CONVERSION_FACTOR = (
INCLINATOR_POSITION_CONVERSION_FACTOR / 60
) # rpm -> radians/s
INCLINATOR_JETTISON_ANGLE = (MAX_INCLINE_ANGLE + MIN_INCLINE_ANGLE) / 2
INCLINATOR_JETTISON_ANGLE = 1

# Add extra point outside our range to ramp speed down to zero
FLYWHEEL_DISTANCE_LOOKUP = (0, 1.3, 2.0, 3.0, 4.0, 5.0, 7.0)
Expand Down
2 changes: 1 addition & 1 deletion robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def teleopPeriodic(self) -> None:
self.chassis.reset_odometry()

# Reverse intake and shoot shooter
if self.gamepad.getBackButton():
if self.gamepad.getStartButton():
self.note_manager.jettison()

# Intake
Expand Down