Skip to content

Commit c370b6c

Browse files
committed
fix: align ThreatInjector arm viz step size with Arm.py
1 parent 4840ca8 commit c370b6c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

modules/04-security-threat/src/ThreatInjector.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,11 +689,11 @@ def _do_inject(self):
689689
)
690690
sample = SurgicalRobot.MotorControl(id=motor, direction=direction)
691691

692-
# Update local visualisation angle
692+
# Update local visualisation angle (0.3° matches Arm.py step size)
693693
if direction == SurgicalRobot.MotorDirections.INCREMENT:
694-
self._angles[motor] = (self._angles[motor] + 2.0) % 360.0
694+
self._angles[motor] = (self._angles[motor] + 0.3) % 360.0
695695
else:
696-
self._angles[motor] = (self._angles[motor] - 2.0) % 360.0
696+
self._angles[motor] = (self._angles[motor] - 0.3) % 360.0
697697
self.window.arm_viz.update_angles(self._angles)
698698
self._motor_idx = (self._motor_idx + 1) % len(_MOTORS_ORDERED)
699699

0 commit comments

Comments
 (0)