SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12-17-10, 04:27 PM   #11
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
1. I see one problem with this - what happens when target speed is 0 (division by 0 not allowed)

2. Plus I think this is overcomplicated - we should be able to simply take distance to target / torp speed to find time to impact

EDIT:

ok, after thinking it over we do need to calculate like you posted Antar in order to take into account target's speed.

3. I don't see how you are factoring in torp speed into this calculation?

EDIT2:

4. Seems to be a problem with this calculation. Time value is going positive and negative like a sin function...

5. track angle and angle on bow are values of -180 to 180 (not 0 to 360). That might be why.
See my comments in yellow.

1. When the target speed is 0 these calculations have no sense,
and the time impact = range / torp_speed

2. There is no easy way to calculate it, this is the reason why torpedo electromechanical computer was on uboats...

3. The torpedo speed create a different track angle, so we do not need special calculations for torpedo speed,

4. First you calculate ship and torp distance, they should be positive both.
Check the angles they should be positive. Check the angle calculations. Aux.angle should be positive.
AoB + aux.angle + (180-torp.angle) = 180

5. AoB and track angle on my calculations should be 0-180 only.
Keep positive only (AoB, track_angle) - the sign +/- depend from target's direction course. They should be positive or negative both together.

6. There are mistake in calculations:
aux.angle = 180 - AoB - (180 - t_angle)
s_ship = r_ship * sin(aux.angle) / sin(180-t_angle)
s_torp = r_ship * sin(AoB) / sin(180-t_angle)

For me the 'degree' are more natural than radians, (but you have AoB, tarck angle in degrees too).
It is no problem to use radians - only change is: 180° = 3,1415rad (pi number)
__________________

PL_Andrev is offline   Reply With Quote
 

Tags
dbrn, favorite, new ui


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:35 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.