If you don't mind using MoBo, it has a TMA tool for converting hydro bearings to target true course...
You can see how it works here:
http://www.subsim.com/radioroom/showthread.php?t=121929
Just review the "Advanced TMA Help" link. If you're stationary it's pretty easy, if you're moving it's a little trickier.