View Single Post
Old 09-22-10, 10:16 PM   #20
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
Yes if we could get a command "set_waypoint, -150,2000,9,0,0,0"
with
-150 = relative heading
2000= distance
9=speed

Perhaps with this It would have been a whole lot easier
Quote:
Originally Posted by The General View Post
I'd love an auto-plot for Keil Canal, a la GWX
Quote:
Originally Posted by Trevally. View Post
Hi General

When the set waypoint command is introduced by TDW, then Keil Canal would be possible.

I would also tighten up the others to prevent speed being a factor.
I added a new command to Automation called Navigate_from_file. Parameter 3 of the command specifies the file to read the waypoints from. The waypoints are defined as follows:
x,y,z,tc,depth,speed

where:
x = the x distance in meters
y = the y distance in meters
z = are these relative distances? value < 1 is False, value >= 1 is True
tc = time compression level to use on this waypoint
depth = depth to use for this waypoint
speed = speed to use for this waypoint

A new command was added to the Navigator's order bar - Report Fix. When clicked this will report your current sub's fix (position) in x,y meters from game origin. You can use this command to help plot a navigation route/search pattern/etc via a navigation file.

See the \data\Navigation\TDW_Navigation.txt file for more info and see \data\Navigation for example navigation files.

This new command is only available in v4.4.0 and later versions.

Here are the contents of an included navigation file included in v4.4.0 (Navigation_test_relative.SHN):

; waypoint data contains the following:
; - parameter 1 - x distance (in meters - whole numbers only! Can be +-)
; - parameter 2 - y distance (in meters - whole numbers only! Can be +-)
; - parameter 3 - are these relative distances? value < 1 is False, value >= 1 is True
; - parameter 4 - time compression level (powers of 2 only! Positive values only)
; - parameter 5 - depth (whole positive values only! Specify 0 for surface)
; - parameter 6 - speed (float value - can be +-)

; performs a box pattern using relative waypoints

0,3000,1,1,0,17
3000,0,1,2,12,4
0,-3000,1,4,20,7
-3000,0,1,8,50,3
0,3000,1,16,0,10
TheDarkWraith is offline   Reply With Quote