Skip to content

Commit 2e04224

Browse files
rawahfuLucienMorey
authored andcommitted
fix no value provided error on test bot camera
1 parent a25c6cc commit 2e04224

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

robot.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,20 @@ def createObjects(self) -> None:
129129
Rotation2d(-1.377),
130130
Rotation2d(1.377),
131131
)
132+
# temporary values
133+
self.port_vision_name = "port_turret"
134+
self.port_vision_turret_pos = Translation3d(-0.010, 0.300, 0.660)
135+
self.port_vision_turret_rot = Rotation2d.fromDegrees(90.0)
136+
self.port_vision_camera_offset = Translation3d(0.021, 0, 0)
137+
self.port_vision_camera_pitch = math.radians(10.0)
138+
self.port_vision_encoder_offset = Rotation2d(6.103)
139+
self.port_vision_servo_offsets = ServoOffsets(
140+
neutral=Rotation2d(1.052), full_range=Rotation2d(3.121)
141+
)
142+
self.port_vision_rotation_range = (
143+
Rotation2d(1.733),
144+
Rotation2d(5.034),
145+
)
132146

133147
else:
134148
self.chassis_swerve_config = SwerveConfig(

0 commit comments

Comments
 (0)