![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
12-20-10, 03:51 PM
|
#1 | |
|
Black Magic
![]() |
Quote:
![]() So let's see if my math is correct.....every 15 degrees of longitude is: 15 x 120,000 = 1,800,000 meters or 1,800km. Correct? I will adjust the digital clock to current nautical time zone in real nav. Thankfully I already have the timers and messagebox reporting in 'current time' so the change will be easy to implement. I've also added dead-reckoning to the mod. If the navigator can't report position he'll chart out a dead-reckoning fix. Depending on your user options he'll either tell you the new position or he'll plot it as a navigational fix. But this I see as a problem. I see it as a way to enable GPS navigation again. When the navigator does his dead-reckoning calc I'm thinking about including a small random amount of error so that it will mitigate GPS style navigation. Thoughts? ![]() I also noticed a big problem with the mod (real nav part). Say you have 4 navigational fixes plotted. You adjusted #2's position. All the rest of the navigational fixes don't adjust |
|
|
|
12-20-10, 06:34 PM
|
#2 | |||
|
Lieutenant
![]() Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
|
Quote:
0. Bernard-the-navigator does his woodoo dance with sextant and dead-reckoning stuff at 12:00PM (and some other times during the day and night) 1. Although reluctantly we accept this coords from him: 53°31′0″N 28°8′0″E 2. From those we need only 28° and E. 3. 28 / 15 = 1.87, round it (round half away from zero: -1.5 = -2; 1.5 = 2), you get 2. 4. Since we are to E - then we add (subtract if W) - so it is +2 5. Your local time is GMT+2. 6. If different from previous zone - note new nautical time zone in the journal (GMT+2) Noting zone letter ("B") as well would be a nice touch of realism. 7. Every midnight note current zone in the journal again. Two more examples 28°27′20″N 80°31′40″W -> round(80/15) = 5 -> 5 * (E) ? 1 : -1 -> is GMT-5 35°42′2″N 139°42′54″E is GMT+9 Quote:
The only thing I would like to add is error accumulation. If you continue dead reckoning from a fix with an error it should give greater error next time. So it should work this way: If it is a proper fix - then just standart error calculation (dependent on the navigator's skill, condition, morale, weather, waves etc.). If it is a dead-reckoning fix - you take the error of the previous fix (say - 500m error from usual fix) and add dead reckoning error to it (2km + 0.5km = 2.5km error). So the longer you continue with dead reckoning - the greater the error will be (2.5km + 2km = 4.5km error next time). Quote:
Last edited by Vanilla; 12-20-10 at 06:46 PM. |
|||
|
|
12-20-10, 08:04 PM
|
#3 |
|
Black Magic
![]() |
ok, wow, some heavy changes and coding
![]() I've implemented the nautical time zones for real navigation. As I'm one for realism I've taken Vanilla's advice/comments and applied them. Here is our new updated digital clock: Notice that is says 'Naut'. This means we are displaying time in nautical time zones. If you click the time anywhere in the black part of it it will toggle to display GMT time. Notice that I updated the tooltip for this also. And now for the real big changes: At game start the current nautical time zone will be displayed in the messagebox. Anytime the day changes (midnight) or you cross another nautical time zone (15 degrees longitude) another entry in the messagebox (and thus ship's journal) will be recorded denoting the current nautical timezone. Navigator will now calculate current position using dead-reckoning if weather is a factor or you are submerged. There is error thrown into his dead-reckoning calculation every time he calculates it. This error can be anywhere from +- 500m in longitude and lattitude (a random function picks a value between -500 and 500 for each). He also takes time to calculate the dead-reckoning position. The time can take anywhere from 30 seconds to 2 minutes. Regardless of user option settings the Navigator will always tell you the current calculated position in the messagebox. If the user option NavShowPositionOnMapsAfterCalc is enabled (True) then he will also plot a new navigation fix on the navigation map. If that user option is not enabled then it's up to you to plot the position. There is one caveat to this: the Navigator knows where your last calculated position is whether it's dead-reckoning or plotted so if you ask him to show last position he will show you at any time. As you can see from the screenshot above I was submerged and moving due North. I asked the Navigator for our current position and he plotted it via a new navigation fix (N2). Notice too that error was incurred and the new navigation fix was not exactly due North of N1. I'll be releasing a test version of v5.9.0 here soon so those of you using real navigation can test this out and give me some feedback on it
Last edited by TheDarkWraith; 12-20-10 at 09:41 PM. |
|
|
12-20-10, 08:27 PM
|
#4 |
|
Black Magic
![]() |
Test version of v5.9.0 available at post #1. Feedback greatly appreciated
|
|
|
12-21-10, 04:46 AM
|
#5 | |
|
Lieutenant
![]() Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
|
Quote:
Incredible and thank you!I've noticed an error in naut time calculation though. On the screenshot coords are 72deg W - that is -5 GMT, not -4 GMT: 72/15 = 4.8; round(4.8) = 5. Probably the script just cuts the fractional part so it rounds down the number (int() function?). It should however round the number 'half away from zero' (0.5-0.9 rounded to 1, 0.1-0.4 rounded to 0 - that is round() function in python as I remember). It is my fault, shame on me. I am so sorry for not making it clear enough! ![]() Here is the formula again just to check: tz_raw = 'number of degrees of long' / 15; tz = round(tz_raw); if (long is Western) then tz = (-1) * tz; |
|
|
|
12-21-10, 05:22 AM
|
#6 |
|
Grey Wolf
![]() Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
|
Is it impossible to change 18'42" to 18°42' ?
mark ° = ALT + 248 (NumLock on)
__________________
![]() |
|
|
12-21-10, 06:42 AM
|
#7 |
|
Chief
![]() Join Date: Jul 2005
Posts: 316
Downloads: 28
Uploads: 0
|
Hi TDW,
my first observation with 5.9.0 (nothing else activated in jsgme): the error when using dead reckoning seems to be far too high. it should depend on the time passed since last fix. if the navigator knows f.ex. that you didnt change course and speed the last two hours and you are running 90 degree, he must be able to determine the actual position very accurate. if the last fix was 24 hours before, a big error should occur because of wind etc. the previous problem reported by me is gone (nav officer didnt report last fix correctly) new problem: some ctd when adding supermarks and second: when opening the gibraltar historical mission, my boat is turning strangly (unplayable situation, boat turns headover) in historical missions where waypoints are set in, your (gps) position is known. you cant delete the waypoints because of the missing waypoint tool... so real nav is not really there... TDW, it gets better and better, very nice work. real navigation brings a whole new feature to the game and brings much realism. my next step will be: making the nav fix myself. btw, the nav fix by sextant is too slow (which navigator needs 30 minutes??? i think 8 to 10 should be enough...) edit: found the time button in the option file, my nav officer can do in 8 minutes now! edit2: another important point: would it be possible to save the drawings on map when game is saved? with real navigation on, it would be a nice feature if i had my course drawings after loading a game...
__________________
Everything comes to him who waits Last edited by Jaeger; 12-21-10 at 09:04 AM. |
|
|
12-21-10, 09:12 AM
|
#8 | |||
|
Black Magic
![]() |
Quote:
Quote:
Quote:
The CTDs I'm very interested in. When do they happen? What errors (if any) are displayed (app crash?)? Can you elaborate more on the Gibraltar mission? Navigator calcuting fix by sextant time can be adjusted in user options file. You're looking for these options: # the base time it takes the Navigator to calculate the current position (fix) # below is in seconds NavCalcFixBaseTime = 2700.0 # the modifier for the min time the navigator can calculate fix. This will be the min value of a random function # below is an Uint32 value only! (i.e. 75 will equal 0.75 in game) NavCalcFixBaseTimeMinModifier = 75 # the modifier for the max time the navigator can calculate fix. This will be the max value of a random function # below is an UInt32 value only! (i.e. 125 will equal 1.25 in game) NavCalcFixBaseTimeMaxModifier = 125 As far as saving the navigation fixes and supermarks at game end, yes it's possible. I can serialize that into the journal file. But before I do that I want to get everything else working 100% first ![]() New test version of v5.9.0 released. See post #1 for details
|
|||
|
|
12-21-10, 10:46 AM
|
#9 |
|
Grey Wolf
![]() Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
|
Is possible to do something with "send contact" and "send messages" buttons?
I think about cooperation with BdU, but I don't know that is possible.
__________________
![]() |
|
|
![]() |
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
