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

Reply
 
Thread Tools Display Modes
Old 12-24-10, 05:00 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Sammi79 View Post
@ TDW

Right, bear with me I'm wishing I was more articulate...

Say the default max dead reckoning error (set in useroptions.py) = 1000.0 (meters float) as it is currently.

Scaling the error depends on distance travelled since last fix. So say 1km travelled = 0.01 (1%) of default error = 10 meters. 10km travelled = 0.10 (10%) of default error = 100 meters. Using this scale, at 100km travelled, error = 1000 meters (1.0 or 100% of default error)

can it then extend the error? I.e. 500km travelled = 1000.0 x 5.00 (500%) = 5000.0 meter.

This is how I think it should work, the default error does not need to change as the scale does the work. maybe instead of setting the default error in useroptions.py the scale (per km) would be a more usefull value - 0.01 per km to start with then maybe increased a little if after 100km, 1km error seems too small.

Is this making sense or am I just confusing the issue?

Regards,
Sam.
The way you propose doesn't give any randomness to the error. It's always a fixed value based on distance. That doesn't simulate human error.

The way I'm calculating it doesn't need scaling. Scaling is taken care of via the distance travelled.

i.e.: the random error % is applied to distance travelled. If random error % is say 0.1 and:
- distance travelled is 100m then error is 10m
- distance travelled is 1000m then error is 100m
- distance travelled is 10000m then error is 1000m

As you can see the error automatically scales to the total distance between fixes. I like the random error % because sometimes navigator can be accurate, sometimes inaccurate (tired, stressed, etc.). This more simulates real life.

The only snag in this whole distance travelled is I don't record every movement of the sub. i.e. I don't record every turn, every speed up, slow down, etc. Thus the error distance calculated will be applied to a random function to determine the x component of the error distance and another random function to determine the y component of the error distance. i.e.: error distance comes out to be 1000m. 1000m will be passed into two random functions as -1000 and 1000 to detemine the final x and y components to add to the current fix to determine final fix position.
TheDarkWraith is offline   Reply With Quote
Old 12-24-10, 05:16 PM   #2
Sammi79
XO
 
Join Date: Jan 2010
Location: Penzance
Posts: 401
Downloads: 272
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
The way you propose doesn't give any randomness to the error. It's always a fixed value based on distance. That doesn't simulate human error.
Edit : Disregard I think you have it covered in your last post. the random error % thing sounds perfect.

Last edited by Sammi79; 12-24-10 at 05:37 PM.
Sammi79 is offline   Reply With Quote
Old 12-24-10, 06:04 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Sammi79 View Post
Edit : Disregard I think you have it covered in your last post. the random error % thing sounds perfect.
So far it appears to be working much better than error based on time between fixes I'll release patch 1 here soon with these changes and other bug fixes.
TheDarkWraith is offline   Reply With Quote
Old 12-24-10, 06:33 PM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

results of testing error based on distance (dead reckoning):

errorX and errorY are the distances to add (or subtract) from calculated position fix to account for error

test #1:
distance travelled = 68128m
error% = 0.1058
errorX = 5468m
errory = 4712m

test #2:
distance travelled = 48891m
error% = 0.025
errorX = 240m
errory = 1018m

test #3:
distance travelled = 54852m
error% = 0.158
errorX = 1276m
errory = 128m

test #4:
distance travelled = 24146m
error% = 0.025
errorX = -44m
errory = 518m

test #5:
distance travelled = 24420m
error% = 0.1365
errorX = -622m
errory = -863m

test #6:
distance travelled = 1830m
error% = 0.0334
errorX = -49m
errory = 30m

Results look very good Good randomness in the actual plotted position based on error. It makes it appear that Navigator is trying to account for waves, wind, and human error.

Last edited by TheDarkWraith; 12-24-10 at 06:52 PM.
TheDarkWraith is offline   Reply With Quote
Old 12-24-10, 06:49 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v5.9.0 patch 1 released. See post #1 for details
TheDarkWraith is offline   Reply With Quote
Reply

Tags
dbrn, favorite, new ui

Thread Tools
Display Modes

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 01:07 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.