SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Special Projects > MoBo - Electronic Maneuvering Board
Forget password? Reset here

 
 
Thread Tools Display Modes
Old 11-19-08, 02:42 AM   #1
cleverusername
Seaman
 
Join Date: Jan 2006
Location: Durham, NC
Posts: 38
Downloads: 0
Uploads: 0
Default Subtract Unit

Could we please get a subtract vector unit in the next update?

It should function similar to the add vector unit, except it subtracts two velocity vectors. This will be useful to get relative motion from true motion.
__________________
Visual. Tally. Press!
cleverusername is offline  
Old 11-19-08, 11:26 AM   #2
XLjedi
Ace of the Deep
 
Join Date: Jun 2005
Location: Palm Beach, Florida
Posts: 1,200
Downloads: 53
Uploads: 8
Default

Actually, I've been meaning to update the 1.1 beta to allow for that other type of vector addition.

At the moment, all we have is relative to true which is end-to-end vector addition. What we need is a toggle on the Add unit that adds two vectors with the same orgin so we can go from true to relative.

That would be a useful feature for determining (for instance) CPA on a dead reckoning plot.

Lemme take a look and see how easy that one would be to implement. :hmm:
Probably a simple one...
__________________

Last edited by XLjedi; 11-19-08 at 11:27 AM.
XLjedi is offline  
Old 11-19-08, 04:23 PM   #3
TheBrauerHour
Mr. Eastwood
 
Join Date: Apr 2007
Posts: 364
Downloads: 18
Uploads: 0
Default

Quote:
Originally Posted by aaronblood
Probably a simple one...

You do realize since you wrote that now it will be the most horribly complex thing ever....
TheBrauerHour is offline  
Old 11-19-08, 07:42 PM   #4
XLjedi
Ace of the Deep
 
Join Date: Jun 2005
Location: Palm Beach, Florida
Posts: 1,200
Downloads: 53
Uploads: 8
Default

Might be able to have this done tomorrow if someone wants to test it.

The updated version of vb.net uses the newer 3.5 framework. Should be fine for most people...
__________________
XLjedi is offline  
Old 11-20-08, 10:54 AM   #5
XLjedi
Ace of the Deep
 
Join Date: Jun 2005
Location: Palm Beach, Florida
Posts: 1,200
Downloads: 53
Uploads: 8
Default

Alright so my idea was to just add a new tool to the "Add" unit menu called "Subtract".


...so the menu for the Add unit now includes this "Subtract" toggle. As you can see above, if the Subtract toggle isn't turned on, the add unit performs its normal end-to-end vector addition for unit vectors 1 & 2 (in this case vector 1 is Ownship and vector 2 is the Contact).


If you change the Subtract toggle to on you'll see the vector addition now shows vectors 1 & 2 starting at the Add unit origin and the resulting vector is shown to start from the endpoint of vector 1 and terminating at the endpoint of vector 2 (again, vector 1 is OwnShip and vector 2 is the contact). Notice the heading of the Add unit is now reported as the heading of the vector 307°.

Previously, if you had to convert true to relative (as in Prob 3 from Chapter 11 - Maneuvering Board" of the US Navy Operations Specialist NRTC) you would've needed to manually do the vector calcs...

Here we see how you'd calculate DRM when the Add unit didn't have the "Subtract" feature.

Now with the new feature enabled we can do it like this:

So now we have the ability to convert from true to relative, in the example above you'll notice we're approaching the contact at a relative speed of 25kts and the contact DRM (direction of relative motion) is 307°.

Is this the sort of thing you were looking for?
__________________
XLjedi is offline  
Old 11-22-08, 01:11 AM   #6
cleverusername
Seaman
 
Join Date: Jan 2006
Location: Durham, NC
Posts: 38
Downloads: 0
Uploads: 0
Default

Perfect! Absolutely perfect! That's exactly what I was looking for. Can't wait to try it out.
__________________
Visual. Tally. Press!
cleverusername is offline  
 


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 06:07 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.