![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
|
|
Thread Tools | Display Modes |
05-13-13, 06:41 AM
|
#11 | ||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
I wonder if you could store somewhere the last range estimation, and the time that it was estimated at. Every time we ask for a range, your code should calculate elapsed time from the previous estimation. Let's define some variablen: RE = new range estimation RE0 = last stored range estimation TE= time elapsed from the last stored range estimation TE0 = minimum time for a new range estimation
TE0 should be a function of target's speed and range: the slower the speed and the longer the range, the longer the time for estimated range to change. Variables are reset if closest target changes. Another, probably easier method to do the same could be by comparing exact ranges. In this case the variables involved would be: RE0 = last stored range estimation R0 = exact range relative to the last stored range estimation R = current range if RE0 and R0 are empty variables (no previous contact estimations for current closest target), then calculate range estimations according to your current code. Else, new range estimation should be equal to: RE0 * R / R0 What do you think? Quote:
![]() http://www.subsim.com/radioroom/show...88#post1886488 |
||
|
|
| Thread Tools | |
| Display Modes | |
|
|
