Can't answer about the hardcoding but on the subject of crash diving, don't know if you've seen this, but it gives weight to what you say: (scroll to page 33)
http://www.uboatarchive.net/Diving/D...egulations.htm
Providing dive times remained accurate, I'd welcome such a patch if someone could figure it out, anything in the interests of greater authenticity and realism.