Skip to content

Commit

Permalink
Updated encoder values
Browse files Browse the repository at this point in the history
  • Loading branch information
james-ward committed Feb 24, 2025
1 parent f57e7e0 commit ebaff5e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,14 @@ def createObjects(self) -> None:
self.chassis_wheel_base = 0.517

self.vision_turret_pos = Translation3d(-0.030, -0.300, 0.660)
self.vision_turret_rot = Rotation2d(math.radians(-135.0))
self.vision_turret_rot = Rotation2d(math.radians(-90.0))
self.vision_camera_offset = Translation3d(0.021, 0, 0)
self.vision_camera_pitch = math.radians(10.0)
self.vision_servo_offset = Rotation2d(6.235)
self.vision_encoder_offset = Rotation2d(0.183795)
self.vision_encoder_offset = Rotation2d(0.9796)
self.vision_servo_offsets = ServoOffsets(
neutral=Rotation2d(0.5757), full_range=Rotation2d(1.9234)
neutral=Rotation2d(0.044), full_range=Rotation2d(1.37)
)
self.vision_rotation_range = (Rotation2d(1.525), Rotation2d(4.33))
self.vision_rotation_range = (Rotation2d(4.611), Rotation2d(2.020))

self.coast_button = wpilib.DigitalInput(DioChannel.SWERVE_COAST_SWITCH)
self.coast_button_pressed_event = wpilib.event.BooleanEvent(
Expand Down

0 comments on commit ebaff5e

Please sign in to comment.