I think it all depends whether your sonar can get a 3d bearing or not.
If yes, then you don't even need to calculate it separately. Just do a simple trigonometry once you know your target's position.
If no, then things get a little bit more complicated.
|