Skip to content

Commit dc3f453

Browse files
james-wardLucienMorey
authored andcommitted
Updated encoder values
1 parent 7731faf commit dc3f453

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

robot.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,14 @@ def createObjects(self) -> None:
152152
self.chassis_wheel_base = 0.517
153153

154154
self.vision_turret_pos = Translation3d(-0.030, -0.300, 0.660)
155-
self.vision_turret_rot = Rotation2d.fromDegrees(-135.0)
155+
self.vision_turret_rot = Rotation2d.fromDegrees(-90.0)
156156
self.vision_camera_offset = Translation3d(0.021, 0, 0)
157157
self.vision_camera_pitch = math.radians(10.0)
158-
self.vision_servo_offset = Rotation2d(6.235)
159-
self.vision_encoder_offset = Rotation2d(0.183795)
158+
self.vision_encoder_offset = Rotation2d(0.9796)
160159
self.vision_servo_offsets = ServoOffsets(
161-
neutral=Rotation2d(0.5757), full_range=Rotation2d(1.9234)
160+
neutral=Rotation2d(0.044), full_range=Rotation2d(1.37)
162161
)
163-
self.vision_rotation_range = (Rotation2d(1.525), Rotation2d(4.33))
162+
self.vision_rotation_range = (Rotation2d(4.611), Rotation2d(2.020))
164163

165164
self.coast_button = wpilib.DigitalInput(DioChannel.SWERVE_COAST_SWITCH)
166165
self.coast_button_pressed_event = wpilib.event.BooleanEvent(

0 commit comments

Comments
 (0)