... and if you're in a Gato-related boat, you might need to apply CapnScurvy's
Gato Sonar Bearing Fix_Stock, else you are stuck with the Stock's "click the handle", which takes forever.
The radio console that KaleunMarco is referring to is found in the Captain's office that you are in while between patrols, or at the beginning of the career mode.
The "Lock" is affected by 'visibility' (or lack thereof). Think of the "Lock" as your XO following the target while you look at the chart. You can sometimes come up a pinch above PD and get a better Lock...
Welcome to SubSim!