Clamping a turret rotation

Have a look: