Skip to content

Commit

Permalink
Clackamas Time
Browse files Browse the repository at this point in the history
  • Loading branch information
PickleFace5 committed Feb 29, 2024
1 parent c9fe6f9 commit ae20c26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ class PivotConstants:
GEAR_RATIO = 50

class ElevatorConstants:
CURRENTSUPPLYLIMIT = 4
TOPPOSITION = 115.855 - 6 # -6 to account for motors "letting up" after calibrating
BOTTOMPOSITION = -6
CURRENTSUPPLYLIMIT = 40
TOPPOSITION = -115.855 + 6 # 6 to account for motors "letting up" after calibrating
BOTTOMPOSITION = 6
MM_ACCEL = 100
MM_VEL = 100

Expand All @@ -64,6 +64,7 @@ class SwerveConstants:
k_drive_base_radius = 0.43 # meters
auto_kP_translation = 7
auto_kP_rotation = 4
auto_kD_rotation = 0

class DriveMotorConstants:

Expand Down
2 changes: 1 addition & 1 deletion subsystems/intake.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self):
pivot_config.motion_magic.with_motion_magic_acceleration(PivotConstants.MM_ACCELERATION).with_motion_magic_cruise_velocity(PivotConstants.MM_CRUISE_VEL)
self.pivotMotor.configurator.apply(pivot_config)

self.intakeMotor.set_position(0)
self.intakeMotor.set_position(0.026)

self.has_note = False

Expand Down
2 changes: 1 addition & 1 deletion subsystems/swerve.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def __init__(self):
lambda chassisSpeed: self.robot_centric_drive(chassisSpeed),
HolonomicPathFollowerConfig(
PIDConstants(SwerveConstants.auto_kP_translation, 0.0, 0.0, 0.0), # translation
PIDConstants(SwerveConstants.auto_kP_rotation, 0.0, 0.0, 0.0), # rotation
PIDConstants(SwerveConstants.auto_kP_rotation, 0.0, SwerveConstants.auto_kD_rotation, 0.0), # rotation
SwerveConstants.k_max_module_speed,
SwerveConstants.k_drive_base_radius,
ReplanningConfig()
Expand Down

0 comments on commit ae20c26

Please sign in to comment.