View Single Post
Old 10-21-10, 04:24 AM   #387
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

In the first version of my snorkel fix I modified the routines which are resposible for the machine telegraph: If the boat is currently snorkelling and I order a new speed which is faster than 2/3 ahead, the speed order is automatically reduced to 2/3 ahead. This worked well.
But unfortumately, that solution was not sufficient, because if you e.g. drive surfaced with flank speed and then dive to snorkel depth, no speed change is ordered and thus the boat will be still on flank speed when snorkelling.

So for my second version I’m programming a routine that checks the speed every 10 seconds when snorkelling. More exactly: There is already such a routine that makes calculations every 10 seconds, and I simply modify it. Every time a speed above 5knots is detected while snorkeling, a WM_KEYPRESS message for the key “2” will be generated, so that the executable thinks the user pressed “2” to order new speed 2/3 ahead. Optimistic that it will work.

Now I’m thinking about how to consider Wind speed / wave height. Possible values could be:

Wind speed 0-5m/s: Speed will be reduced to 2/3 ahead.
Wind speed 6-10m/s: Speed will be reduced to slow ahead.
Wind speed > 10m/s: Snorkelling not possible. Engines will be stopped by the watch routine.

Are these historically correct?
__________________
My Mediafire page: http://www.mediafire.com/hsie

Last edited by h.sie; 10-21-10 at 06:43 AM.
h.sie is offline   Reply With Quote