Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 20-11-2017, 09:22   #1
Registered User

Join Date: May 2012
Posts: 1,205
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:	415
Size:	114.9 KB
ID:	159454   Click image for larger version

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

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

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
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 20-11-2017, 23:22   #3
Registered User

Join Date: May 2012
Posts: 1,205
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, 00:27   #4
Registered User

Join Date: Jun 2015
Posts: 379
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, 00:39   #5
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
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 offline   Reply With Quote
Old 21-11-2017, 02:14   #6
Registered User

Join Date: May 2012
Posts: 1,205
Re: ShipDriver - another BETA!!!

did-g ...

Thanks. That library looks good.

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

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
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, 04:41   #8
Registered User

Join Date: May 2012
Posts: 1,205
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, 09:43   #9
Registered User

Join Date: May 2012
Posts: 1,205
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, 17:14   #10
Registered User

Join Date: Aug 2010
Location: Oz
Boat: EX prawn trawler 14m
Posts: 166
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:	284
Size:	406.6 KB
ID:	159546  
redog is offline   Reply With Quote
Old 22-11-2017, 23:14   #11
Registered User

Join Date: May 2012
Posts: 1,205
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, 00:49   #12
Registered User

Join Date: Aug 2010
Location: Oz
Boat: EX prawn trawler 14m
Posts: 166
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:	252
Size:	341.6 KB
ID:	159717   Click image for larger version

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

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

Join Date: May 2012
Posts: 1,205
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, 01:41   #14
Registered User

Join Date: Aug 2010
Location: Oz
Boat: EX prawn trawler 14m
Posts: 166
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, 03:39   #15
Registered User

Join Date: May 2012
Posts: 1,205
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:	233
Size:	76.9 KB
ID:	159755  
Rasbats is offline   Reply With Quote
Reply


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 2879 Yesterday 11:33
Have you ever been hit by another boat in another country? autumnbreeze27 General Sailing Forum 18 16-01-2017 12:14
Beta Marine Diesel michaelmrc Engines and Propulsion Systems 48 23-03-2016 13:44
November 12th - Becalmed, bothered and bewildered (another riff on another song) and skipgundlach General Sailing Forum 0 15-11-2007 18:30

Advertise Here


All times are GMT -7. The time now is 15:57.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.