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 02-01-2016, 05:46   #661
Registered User

Join Date: Mar 2010
Location: Den Helder, the Netherlands
Boat: Drascombe Coaster (22ft) "Seanymph"
Posts: 136
Re: Ocpn-Draw and Boundary

Quote:
Originally Posted by jongough View Post
Roel,
Happy 2016 .

I have now put up a change to fix this. I was so fixated on AIS alarms and getting them to work I missed the issue with non-AIS boundary alarms. Thanks for finding it.

Jon
Hi Jon,

Installed newest versions of O, WD and OD.
With newest versions (01-01-2016) Guard-zone alarm gets triggered again but other problems remain the same. In my logfile I get these errors:

2:29:37 PM: ocpn_draw_pi: Error parsing JSON message - OCPN_DRAW_PIError: line 5, col 20 - Literal '1.#QNAN' is incorrect (did you forget quotes?)
Error: line 5, col 20 - cannot store the value: 'value' is missing for JSON object type

It's Chinese to me, but maybe you can make some sense of it?

"Roel" (just to make sure I don't forget any quotes)
Roel Smidt is offline   Reply With Quote
Old 02-01-2016, 05:57   #662
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: Ocpn-Draw and Boundary

Quote:
Originally Posted by rgleason View Post
Jon,
Would it be hard to make a 360 degree guard zone which moves with the boat, with a user adjustable distance..........
Rick
I may misunderstand but what's then the difference to a AIS CPA alarm? There you limit a circle, CPA, around the boat and also give a time to react and you can have a sound/message alert or only a visible CPA indication on screen.

Håkan
Hakan is offline   Reply With Quote
Old 02-01-2016, 12:26   #663
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
Re: Ocpn-Draw and Boundary

Roel (no quotes),
If you want to try out the latest code you will, currently, need to build my fork of the WD code or get my pull request from the main repository.

The error message comes straight from the JSON message processing not OD code, so there is not much I can do about it or its meaning. I did get a few of these messages yesterday morning, but I have updated the code since then and am now not getting them.

Can you try again with the latest OD, patch 595, and the latest WD with my pulls up to 'd9afeb6'. This will then let me narrow down which bit has gone wrong.

Thanks
Jon

Quote:
Originally Posted by Roel Smidt View Post
Hi Jon,

Installed newest versions of O, WD and OD.
With newest versions (01-01-2016) Guard-zone alarm gets triggered again but other problems remain the same. In my logfile I get these errors:

2:29:37 PM: ocpn_draw_pi: Error parsing JSON message - OCPN_DRAW_PIError: line 5, col 20 - Literal '1.#QNAN' is incorrect (did you forget quotes?)
Error: line 5, col 20 - cannot store the value: 'value' is missing for JSON object type

It's Chinese to me, but maybe you can make some sense of it?

"Roel" (just to make sure I don't forget any quotes)
jongough is offline   Reply With Quote
Old 03-01-2016, 02:21   #664
Registered User

Join Date: Mar 2010
Location: Den Helder, the Netherlands
Boat: Drascombe Coaster (22ft) "Seanymph"
Posts: 136
Re: Ocpn-Draw and Boundary

Quote:
Originally Posted by jongough View Post
Roel (no quotes),
If you want to try out the latest code you will, currently, need to build my fork of the WD code or get my pull request from the main repository.
...
...
Can you try again with the latest OD, patch 595, and the latest WD with my pulls up to 'd9afeb6'. This will then let me narrow down which bit has gone wrong.

Thanks
Jon
Jon,

I'm afraid I will have to wait for Rick to put your latest WD on his Beta File Thingie. I have no programming skills and Github, Visual Studio or compiling are causing serious "comprehension errors" ...

Roel
Roel Smidt is offline   Reply With Quote
Old 03-01-2016, 03:12   #665
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: Ocpn-Draw and Boundary

Roel and John, Sorry got distracted by a job. Will compile this morning.
rgleason is offline   Reply With Quote
Old 03-01-2016, 10:27   #666
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: Ocpn-Draw and Boundary

Quote:
Jon,
Would it be hard to make a 360 degree guard zone which moves with the boat, with a user adjustable distance..........


Rick I may misunderstand but what's then the difference to a AIS CPA alarm? There you limit a circle, CPA, around the boat and also give a time to react and you can have a sound/message alert or only a visible CPA indication on screen. Håkan
Hakan, I thought the same thing, but was finally convinced after much stubborness from me, that they are entirely different animals. There is a thread and the Tracker AIS Flyspray entries. I will try to find them for you.

TCPA and CPA are just looking at the Closest point of Approach, not the location of AIS ships with respect distance from Own Ship.

FS#1881 : AIS Alarm - Proximity alert - Guard Zone vs CPA target range

FS#1587 : AIS Alarm - Proximity alert -SOG & COG accuracy?

I now think Marco is right!

Also read this thread way back.
http://www.cruisersforum.com/forums/...157030-10.html
rgleason is offline   Reply With Quote
Old 03-01-2016, 10:50   #667
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: Ocpn-Draw and Boundary

Roel, I had the same error back in the log. Try the WD I am uploading next with some other files.
rgleason is offline   Reply With Quote
Old 03-01-2016, 10:59   #668
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: Ocpn-Draw and Boundary

Opencpn Beta File Thingie rguser rgpass
Look in 4.1.1301 PI Win
ocpn_draw_pi-0.4.596-ov4.1.1301-win32
watchdog_pi-1.9004-ov4.1.1301-1287624-frm-Jon-win32
DR_pi-0.1-ov4.1.1301-win32
rgleason is offline   Reply With Quote
Old 03-01-2016, 12:40   #669
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: Ocpn-Draw and Boundary

Rick
re: Guard zone
OK - convinced about the difference.
Håkan
Hakan is offline   Reply With Quote
Old 04-01-2016, 11:46   #670
Registered User

Join Date: Mar 2010
Location: Den Helder, the Netherlands
Boat: Drascombe Coaster (22ft) "Seanymph"
Posts: 136
Re: Ocpn-Draw and Boundary

Quote:
Originally Posted by rgleason View Post
Roel, I had the same error back in the log. Try the WD I am uploading next with some other files.
Rick,

First of all of course best wishes and fair winds for 2016!

But now the "problems" .....
I realize you are (and have been) doing a lot of work but somehow I keep having issues with OD.

I tested and tested but these are my results (combinations of OpenCPN + WD + OD)

Opencpn_4.1.1301_setup.exe
Ocpn_draw_pi-0.4.592-ov4.1.1108-PR154-3-win32.exe
Watchdog_pi-1.9004-ov4.1.1301-1287624-frm-Jon-win32.exe
Result:
Boundary Anchor works
Boundary Distance (Inclusion, Exclusion, Any & Neither) work
GuardZone works but cannot be turned off.


Opencpn_4.1.1301_setup.exe
Ocpn_draw_pi-0.4.593-ov4.1.1108-win32.exe
Watchdog_pi-1.9004-ov4.1.1301-1287624-frm-Jon-win32.exe
Result:
Boundary Anchor works
Boundary Distance (Inclusion, Exclusion, Any & Neither) do not work
Boundary GuardZone works but cannot be turned off.

Same results with
Ocpn_draw_pi-0.4.596-ov4.1.1301-MPR158-win32.exe 491 2016-01-03
Ocpn_draw_pi-0.4.596-ov4.1.1301-MPR157-win32.exe 491 2016-01-01
Ocpn_draw_pi-0.4.596-ov4.1.1301-win32.exe 491 2016-01-03

So what it amounts to (at least for me) is that Ocpn_draw_pi-0.4.592-ov4.1.1108-PR154-3-win32.exe works OK (apart from the fact that I cannot switch Guard Zone off) and all the newer versions cause problems.

Roel
Roel Smidt is offline   Reply With Quote
Old 04-01-2016, 12:57   #671
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: Ocpn-Draw and Boundary

Dear Roel,
I am so sorry, you've been doing a lot too and I feel badly.
Here are the most current files that I have which are up on the website
under 4.1.1308 PI Win

ocpn_draw_pi-0.4.596-ov4.1.1301-MPR158-win32 1-3-2016 4:48am
watchdog_pi-1.9004-ov4.1.1301-1287624-frm-Jon-win32 1-2-2016 7:17am

I have not been able to test these as throughly as I did before. Perhaps a little more attention is needed. I recently I would just test what the topic was, not the whole set of functions.

Let me understand you better when you say ".. I cannot switch Guard Zone off."
- What action?

I wonder if Jon needs to regress back?
And just to make this a little more confusing Jon has a new version we can try!:

ocpn_draw_pi-0.4.597-ov4.1.1308-d5c7215-MPR159-win32
watchdog_pi-1.9004-ov4.1.1308-d9afeb6-Jon-Allowconfig-dialog-win-resize-win32

It certainly is nice that the compiles for Opencpn have slowed down.
I now have a batch file, modified from Transmitter Dan, that makes it much easier to compile, pretty much one command, then rename and upload.
Whoops there is a new version of Ocpn. I am going to have to use TDan batch for that too.

opencpn_4.1.1301_ba10e7f-Corct-oGL-AREA-render-pi-vector-charts

Find these in the O Beta Windows Plugins Thread please, in a minute.

I hope these do the trick. Sorry about all the testing. I'll try later tonight.
BW I have not tested yet.
rgleason is offline   Reply With Quote
Old 04-01-2016, 19:25   #672
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: Ocpn-Draw and Boundary

Jon, I tested the most current plugins and
GuardZone AIS alarm are working.
Boundary Anchor Alarms are working.

When the Boats with AIS cross into a Boundary Area and alarm goes out.
I did a test with a Green North alarm and a Red South Alarm and it works.
Also if an AIS alarm is green and leaving the area and crossing a Guard Alarm boundary it appears there is not alarm put up, which is good.

I have a question about what the Boundary Type selection is supposed to do?
Is that a filter for selection of a Boundary when you hit Get GUID?

Also is it possible for the Anchor alarm popup to show more information.
Attached Thumbnails
Click image for larger version

Name:	GuardZones-Working.png
Views:	180
Size:	248.2 KB
ID:	116166   Click image for larger version

Name:	Boundary-Anchor-Alarm.png
Views:	190
Size:	254.8 KB
ID:	116167  

Click image for larger version

Name:	GuardZone--Two.png
Views:	174
Size:	215.6 KB
ID:	116168  
rgleason is offline   Reply With Quote
Old 04-01-2016, 19:35   #673
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,633
Images: 2
Re: Ocpn-Draw and Boundary

Jon, I almost forgot. Your Work to Resize the WD Screen is almost working!
I can pull the edge out, and I took a shot of it, but there is some timer or something that keeps timing and pulling the screen back to the original. I have to grab it again and pull it out again, then it goes back. Its very quick.

Thanks, these alarms and WD parts are starting to work together!

Rick
Attached Thumbnails
Click image for larger version

Name:	ResizeMenu-Almost-Works.png
Views:	189
Size:	179.5 KB
ID:	116169  
rgleason is offline   Reply With Quote
Old 04-01-2016, 23:16   #674
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
Re: Ocpn-Draw and Boundary

Rick, Roel,
I have just made some changes and tested them under linux and windows 7. You will need OD patch 598 which fixes a double left click issue and contains the latest header files for OCPN 1301. You will also need WD 1.9016 which contains updates to give more information and fixes some issues with invalid values in the JSON messages.

In my testing the alarms work as expected (I hope I have covered all scenarios). I have tried to make the alarm edit panel for boundary alarms a little more clear. Boundary Distance and Boundary Time use the Boundary types. Anchor Alarm and Guard Zone do not care about Boundary types, this is up to the user to select the boundary they want to use. I have added a bit more information to the message box and if there is a boundary name and description these will be displayed.

In my testing I am now getting some assert errors on colours, but this is not in my code (appears to be new SVG code), so currently I am ignoring them whilst trying to get OD/WD/OCPN(AIS) all playing nicely and doing what I think you want.

Jon
jongough is offline   Reply With Quote
Old 05-01-2016, 00:16   #675
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: Ocpn-Draw and Boundary

Jon
W10,VS2013. OCPN-today's fetch, WD-1.9016, OD-0.4.598

- Thanks for the UI on WD, list of alarm types. Now in nice rows one column instead of one row several columns.
- The boundary time counter seems to be "null" in my system and won't count down. See pictures. Anything you can do?

Thanks
Håkan
Attached Thumbnails
Click image for larger version

Name:	wm1.PNG
Views:	131
Size:	16.5 KB
ID:	116176   Click image for larger version

Name:	wm2.PNG
Views:	147
Size:	11.7 KB
ID:	116177  

Click image for larger version

Name:	wm3.PNG
Views:	226
Size:	5.4 KB
ID:	116178  
Hakan 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
Rookie questions - boundary circles; exporting options; GPX files fredgmeyer OpenCPN 5 23-05-2014 22:22
Buoys out in Boundary Bay, BC Carogan Liveaboard's Forum 0 27-08-2012 06:41
For Sale: Cascade Designs Seal Line Boundary 70 Dry Bag thesparrow Classifieds Archive 0 14-03-2011 15:27
Current draw and insulation of portable fridges troppo Plumbing Systems and Fixtures 6 06-03-2011 09:00
amperage draw for Garmin radar and MFD janders Marine Electronics 8 16-12-2008 17:00

Advertise Here


All times are GMT -7. The time now is 01:43.


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.