Mostly deals with the American TDC, but the concept is the same:
http://en.wikipedia.org/wiki/Torpedo_Data_Computer
"The TDC performed the
trigonometric calculations required to compute a target intercept course for the torpedo. It also had an electromechanical interface to the torpedoes that allowed it to automatically set the torpedo courses while they were in their tubes, ready to be launched."