 |
|
02-01-2016, 06:46
|
#661
|
Registered User
Join Date: Mar 2010
Location: Den Helder, the Netherlands
Boat: Drascombe Coaster (22ft) "Seanymph"
Posts: 113
|
Re: Ocpn-Draw and Boundary
Quote:
Originally Posted by jongough
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)
__________________
|
|
|
02-01-2016, 06:57
|
#662
|
Registered User
Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 2,290
|
Re: Ocpn-Draw and Boundary
Quote:
Originally Posted by rgleason
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
__________________
|
|
|
02-01-2016, 13:26
|
#663
|
Registered User
Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 941
|
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
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) 
|
|
|
|
03-01-2016, 03:21
|
#664
|
Registered User
Join Date: Mar 2010
Location: Den Helder, the Netherlands
Boat: Drascombe Coaster (22ft) "Seanymph"
Posts: 113
|
Re: Ocpn-Draw and Boundary
Quote:
Originally Posted by jongough
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
|
|
|
03-01-2016, 04:12
|
#665
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 12,043
|
Re: Ocpn-Draw and Boundary
Roel and John, Sorry got distracted by a job. Will compile this morning.
|
|
|
03-01-2016, 11:27
|
#666
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 12,043
|
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.
Do we need/want an AIS filter?
|
|
|
03-01-2016, 11:50
|
#667
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 12,043
|
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.
|
|
|
03-01-2016, 11:59
|
#668
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 12,043
|
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
|
|
|
03-01-2016, 13:40
|
#669
|
Registered User
Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 2,290
|
Re: Ocpn-Draw and Boundary
Rick
re: Guard zone
OK - convinced about the difference.
Håkan
|
|
|
04-01-2016, 12:46
|
#670
|
Registered User
Join Date: Mar 2010
Location: Den Helder, the Netherlands
Boat: Drascombe Coaster (22ft) "Seanymph"
Posts: 113
|
Re: Ocpn-Draw and Boundary
Quote:
Originally Posted by rgleason
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
|
|
|
04-01-2016, 13:57
|
#671
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 12,043
|
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.
|
|
|
04-01-2016, 20:25
|
#672
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 12,043
|
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.
|
|
|
04-01-2016, 20:35
|
#673
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 12,043
|
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
|
|
|
05-01-2016, 00:16
|
#674
|
Registered User
Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 941
|
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
|
|
|
05-01-2016, 01:16
|
#675
|
Registered User
Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 2,290
|
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
__________________
|
|
|
 |
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|