![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
12-17-10, 03:01 AM
|
#1 | |
|
Grey Wolf
![]() Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
|
Quote:
__________________
![]() Last edited by PL_Andrev; 12-17-10 at 05:35 AM. |
|
|
|
12-17-10, 08:12 AM
|
#2 | |
|
Black Magic
![]() |
Quote:
EDIT: doesn't work. Game only updates those dials (Torp estimated seconds and minutes) after you fire a torpedo . So no torp estimated impact time in the torpedo box
Last edited by TheDarkWraith; 12-17-10 at 10:13 AM. |
|
|
|
12-17-10, 12:02 PM
|
#3 | |
|
Grey Wolf
![]() Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
|
Quote:
![]() At your screen: Is the track angle changing when you change the torpedo speed? Could you show me three screens with track angle for three torpedo speeds when you are parallel to target? It looks like: |...... | sub ship (with any speed)
__________________
![]() |
|
|
|
12-17-10, 12:04 PM
|
#4 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
12-17-10, 12:20 PM
|
#5 | |
|
Grey Wolf
![]() Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
|
Quote:
v_ship - target speed r_ship - last calculated distance to target AoB - AoB t_angle - track angle 'calculate all angles in triangle (uboat-target-hit.point) aux.angle = 180-AoB- (90-t_angle) 'law of sine to calculate intervals (ways) of ship/torpedo s_ship = r_ship * sin(aux.angle) / sin(90-t_angle) s_torp = r_ship * sin(AoB) / sin(90-t_angle) 'to hit torp.time = ship.time t_torp = s_ship / v_ship When you change the torpedo speed the track angle is changed, so v_speed value is included at t_angle.
__________________
![]() |
|
|
|
12-17-10, 03:38 PM
|
#6 | |
|
Black Magic
![]() |
Quote:
![]() 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. I don't see how you are factoring in torp speed into this calculation? EDIT2: Seems to be a problem with this calculation. Time value is going positive and negative like a sin function... track angle and angle on bow are values of -180 to 180 (not 0 to 360). That might be why. EDIT3: math functions don't like it when you pass them angles instead of radians...so now time is steady but the time increases as the target gets closer..... Are we not doing anything with s_torp?? The division by 0 is still a problem also Last edited by TheDarkWraith; 12-17-10 at 04:18 PM. |
|
|
|
12-17-10, 04:27 PM
|
#7 | |
|
Grey Wolf
![]() Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
|
Quote:
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)
__________________
![]() |
|
|
|
12-18-10, 05:47 AM
|
#8 |
|
Watch
![]() Join Date: Nov 2010
Posts: 28
Downloads: 13
Uploads: 0
|
hello,
a problem with aircraft and flag An aircraft is detected The crew is at the flag Each time i switch on the screen flag, by teleporting or closing navigation screen, i have this error, I can reproduce it on demand : A little window "Can't determine current position (OK)" then a big window "error invoking raise_resized function in class control group wrapper". May be this problem was also in previous version |
|
|
12-18-10, 06:31 AM
|
#9 | |
|
Black Magic
![]() |
Quote:
Last edited by TheDarkWraith; 12-18-10 at 07:59 AM. |
|
|
|
12-18-10, 03:41 PM
|
#10 |
|
Seaman
![]() Join Date: Jun 2010
Posts: 37
Downloads: 366
Uploads: 0
|
TheDarkWraith
Why you delete link for NewUIs with TDC v5.7.0? |
|
|
12-18-10, 03:42 PM
|
#11 |
|
Black Magic
![]() |
|
|
|
12-18-10, 03:55 PM
|
#12 |
|
XO
![]() Join Date: Mar 2008
Posts: 424
Downloads: 341
Uploads: 0
|
TDW...
I got an idea. Maybe SOAN and charts could be printable... maybe ERM too? I`m thinking about 3-4 shpis on the page (A4 210x297mm or 8.25x11.7inches). |
|
|
![]() |
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
