Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 20-11-2017, 10:22   #1
Registered User

Join Date: May 2012
Posts: 405
ShipDriver - another BETA!!!

Almost a simulator or is it a game? Totally frivolous but I needed some relaxation! Only a motor vessel at the moment.

Now published on GitHub:
https://github.com/Rasbats/shipdrive...eases/tag/v0.1

On a more serious note, this has many development possibilities:
TODO Read Json and sound alarms when close to land.
TODO Read Json wind from Grib and sail to the Caribbean.
TODO Add a readout for the rudder being used (Port/Stbd).
TODO Make a different toolbar icon.

The only problem is time!

It would be nice to go multi-player. Has anyone got stuff to encode AIS? I did find some Python code so that may allow a start.

User instructions to follow.
WARNING: You may need to buy another computer to give your navigation machine a rest.

Screenshot shows docking in Devonport Naval Base. Try coming into Plymouth Sound at 100 knots!
Attached Thumbnails
Click image for larger version

Name:	ShipDriver.png
Views:	110
Size:	114.9 KB
ID:	159454   Click image for larger version

Name:	ToolbarIcon.png
Views:	93
Size:	11.0 KB
ID:	159455  

__________________

__________________
Rasbats is offline   Reply With Quote
Old 20-11-2017, 23:53   #2
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: ShipDriver - another BETA!!!

Rasbat..
re: Has anyone got stuff to encode AIS?



See O code AIS_Decoder.cpp it walks through all AIS messages of interest for OCPN.
For example messages in NMEA VDM/VDO Bitstring starts at row 1288


Or use already defined JSon AIS messages. Row 2686 in the same file.
__________________

__________________
Hakan is offline   Reply With Quote
Old 21-11-2017, 00:22   #3
Registered User

Join Date: May 2012
Posts: 405
Re: ShipDriver - another BETA!!!

Hakan ...

Thanks for the pointer but I was looking for code to make something like this:

!AIVDM,1,1,,A,4@2A``1ujGUrb14u5PI:tqW00D10,0*7C
!AIVDM,1,1,,B,13=?Sj002;11b8pIEt4<sbK@0<0L,0*25
!AIVDO,1,1,,,B39cWA00Eh@m5gVE;pbvswmUkP06,0*47

The simulator on one pc could produce these sentences for their own vessel's course and speed and transmit them via TCP to the target pc. The target would see this as another vessel.

Mike
__________________
Rasbats is offline   Reply With Quote
Old 21-11-2017, 01:27   #4
Registered User

Join Date: Jun 2015
Posts: 198
Re: ShipDriver - another BETA!!!

Quote:
Originally Posted by Rasbats View Post
Hakan ...

Thanks for the pointer but I was looking for code to make something like this:

!AIVDM,1,1,,A,4@2A``1ujGUrb14u5PI:tqW00D10,0*7C
!AIVDM,1,1,,B,13=?Sj002;11b8pIEt4<sbK@0<0L,0*25
!AIVDO,1,1,,,B39cWA00Eh@m5gVE;pbvswmUkP06,0*47

The simulator on one pc could produce these sentences for their own vessel's course and speed and transmit them via TCP to the target pc. The target would see this as another vessel.

Mike
https://github.com/mariokonrad/marnav
__________________
did-g is offline   Reply With Quote
Old 21-11-2017, 01:39   #5
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,333
Re: ShipDriver - another BETA!!!

Mike, I think this could be more than a game. Couldn't it possibly be a another test tool?

did-g I've had mario's https://github.com/mariokonrad/marnav bookmarked
for quite awhile thinking it might be useful for something. Thank you for thinking of it!
__________________
rgleason is online now   Reply With Quote
Old 21-11-2017, 03:14   #6
Registered User

Join Date: May 2012
Posts: 405
Re: ShipDriver - another BETA!!!

did-g ...

Thanks. That library looks good.

Mike
__________________
Rasbats is offline   Reply With Quote
Old 21-11-2017, 05:55   #7
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: ShipDriver - another BETA!!!

mike..
have you tried TDan's https://github.com/transmitterdan/AISconverter
Read TDan's readme and maybe use what you want from my examples.

I use it a lot for simulation. If you like to see some examples a text file to convert to AIS messages and a bat file I use to start it all is here: https://www.dropbox.com/s/umoygtbz46...files.zip?dl=1
Thanks to TDan for this wonderful tool.


Håkan
__________________
Hakan is offline   Reply With Quote
Old 22-11-2017, 05:41   #8
Registered User

Join Date: May 2012
Posts: 405
Re: ShipDriver - another BETA!!!

Don't try and compile on Linux just yet. Some Windows related problems to solve.

Mike
__________________
Rasbats is offline   Reply With Quote
Old 22-11-2017, 10:43   #9
Registered User

Join Date: May 2012
Posts: 405
Re: ShipDriver - another BETA!!!

Now runs fine on Linux. The colours of the rudder indicator are better than on Windows! The problem was my use of 'abs' and a cast to (int) that did not work on Linux.

GitHub has been updated and v0.1 replaced with the new code. DEB package (Remove the .pdf) and Windows installers are in the release.

https://github.com/Rasbats/shipdriver_pi/releases

Mike
__________________
Rasbats is offline   Reply With Quote
Old 22-11-2017, 18:14   #10
Registered User

Join Date: Aug 2010
Location: Oz
Boat: EX prawn trawler 14m
Posts: 100
Re: ShipDriver - another BETA!!!

Mike
Preferences button greyed out and not accessible.
Ubuntu 16.04 O4.8
Redog
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2017-11-23 11-10-36.jpg
Views:	44
Size:	406.6 KB
ID:	159546  
__________________
redog is offline   Reply With Quote
Old 23-11-2017, 00:14   #11
Registered User

Join Date: May 2012
Posts: 405
Re: ShipDriver - another BETA!!!

redog ...

Thanks, that description in toolbox is plain wrong. Should read something like 'Almost a simulator'. Left from another idea.

No 'Preferences' set up for 'ShipDriver_pi' yet. In the future it could have things like 'Power', 'Sail', 'Tacking angle'. Endless.

Please can you confirm the plugin works with your Ubuntu.

Mike
__________________
Rasbats is offline   Reply With Quote
Old 26-11-2017, 01:49   #12
Registered User

Join Date: Aug 2010
Location: Oz
Boat: EX prawn trawler 14m
Posts: 100
Re: ShipDriver - another BETA!!!

Mike
Tried a test on Ubuntu for you, resulted in me going to South America and back to Oz very quickly.
A screen shot of track and one of properties of the track.
Redog
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2017-11-26 18-40-06.jpg
Views:	29
Size:	341.6 KB
ID:	159717   Click image for larger version

Name:	Screenshot from 2017-11-26 18-40-44.jpg
Views:	35
Size:	384.1 KB
ID:	159718  

__________________
redog is offline   Reply With Quote
Old 26-11-2017, 02:22   #13
Registered User

Join Date: May 2012
Posts: 405
Re: ShipDriver - another BETA!!!

redog ...

Not good but I see the reason. Longitudes greater than 99 degrees. If you take your boat to the English Channel I think it should work for you!!! Seriously though, I will get this fixed.

Mike
__________________
Rasbats is offline   Reply With Quote
Old 26-11-2017, 02:41   #14
Registered User

Join Date: Aug 2010
Location: Oz
Boat: EX prawn trawler 14m
Posts: 100
Re: ShipDriver - another BETA!!!

Mike
Why would I want to go back to the English Channel?
We got kicked out of there 200 years ago and haven't looked back since.
Let me know when I can download an update and trial some more please?
Redog
__________________
redog is offline   Reply With Quote
Old 27-11-2017, 04:39   #15
Registered User

Join Date: May 2012
Posts: 405
Re: ShipDriver - another BETA!!!

v0.2 of the ShipDriver simgame is now on GitHub:

https://github.com/Rasbats/shipdrive...eases/tag/v0.2

Amended the description. Rudder angle as text is now included.

Drove into Sydney and also crossed 180 degree longitude in the Pacific. Buenos Aires was also great.

Mike
Attached Thumbnails
Click image for larger version

Name:	linux.sydney.png
Views:	30
Size:	76.9 KB
ID:	159755  
__________________

__________________
Rasbats is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beta Test / Technical bdbcat OpenCPN 2067 02-12-2017 15:06
Have you ever been hit by another boat in another country? autumnbreeze27 General Sailing Forum 18 16-01-2017 13:14
Beta Marine Diesel michaelmrc Engines and Propulsion Systems 48 23-03-2016 14:44
November 12th - Becalmed, bothered and bewildered (another riff on another song) and skipgundlach General Sailing Forum 0 15-11-2007 19:30



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 11:29.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.