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 09-09-2015, 10:39   #31
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 581
Re: Watchdog Plugin

is it possible to teach landfall taking coastline of the vector chart objects COALNE, SLCONS?
Baikal is offline   Reply With Quote
Old 09-09-2015, 14:05   #32
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Watchdog Plugin

not yet, it is planned and also for depth. This is needed for weather routing as well, but I need to digest the oenc stuff and implement it.
seandepagnier is offline   Reply With Quote
Old 09-09-2015, 14:23   #33
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Watchdog Plugin

Quote:
Originally Posted by Hakan View Post
Sean....again
First build and now also run for test. - Two issues:
1.
It seems that if the GL/glext.h is present the Landfall guard is pointing to a false direction. See the two pictures. The first is todays pull including GL/glext.h. The next is when I again has commented out as of the diff above. I haven't tested if it is only a graphic failure or if also the calculations are false.
Wow, really? For me it won't compile without glext.h
Quote:
2.
If I check the Landfall "Graphics enabled" box the yellow line is drawn, as in the pictures, but then Watchdog, and OCPN, hangs.
See the pictures. Translation from Swedish: Watchdog (Svarar inte) = Watchdog (Don't respond) This program halt is independent of if I have commented out GL/glext.h or not.

More details?, please ask.
Håkan
I will try this.
seandepagnier is offline   Reply With Quote
Old 09-09-2015, 14:56   #34
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Watchdog Plugin

Please try git now and see if it still is locking up
seandepagnier is offline   Reply With Quote
Old 09-09-2015, 17:03   #35
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: Watchdog Plugin

Sean..
The Landfall is now fine. No locking up and the yellow line points to nearest land. Many thanks.
But...Deadman is now not counting up when "Auto follow" is active and the chart is moving on the screen. If I switch auto follow of with F2 the counter starts. Another F2 and the counter goes to zero is if I had moved the mouse.
Håkan
Hakan is offline   Reply With Quote
Old 11-09-2015, 17:41   #36
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Watchdog Plugin

Have compiled new Watchdog plugin for Opencpn v4.1.818 with opencpn.lib for 4.1.818 since any plugin for the current newer versions is automatically not compatible with 4.0 due to change to wxwidgets 3.0

I have tried it but not checked Hakan's Deadman problem yet. I am going to try it with the Ocpn_Draw plugin and the new Boundary functions.

Opencpn Beta File Thingie
rguser rgpass
Under 4.1.818 PI Win directory
watchdog_pi-1.9002-ov4.1.818-win32
rgleason is offline   Reply With Quote
Old 11-09-2015, 20:46   #37
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Watchdog Plugin

Tried to create an Ocpn_Draw Boundary around Portes de Morts Passage in Lake Michigan, Move the boat inside the boundary, then copy the GUID from the Boundary's Properties, into Watchdog Edit > Boundary > GUID area, close the Edit and the GUID looks ok, but the Watchdog Alarm window shows "Boundary Time Invalid". I hit "Reset" and it still says "Boundary Time Invalid".

I am not sure what I am doing wrong here.

RE: Landfall Alarm - Need to do this GPS running on the boat to test properly, which I will do when back on boat. Hakan confirmed it works though.
Attached Thumbnails
Click image for larger version

Name:	WatchDog+Boundary.png
Views:	255
Size:	108.2 KB
ID:	108882  
rgleason is offline   Reply With Quote
Old 19-09-2015, 20:58   #38
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 581
Re: Watchdog Plugin

Add to new watchdog_pi.pot missing string for translation.
Did the translation into Russian watchdog_pi.mo, as a result of the new lines are not translated in the English left
Attached Files
File Type: pdf watchdog_pi.mo.pdf (5.3 KB, 81 views)
Baikal is offline   Reply With Quote
Old 24-11-2015, 10:26   #39
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Watchdog Plugin

I should have put the message here, under Watchdog,
instead it is here
http://www.cruisersforum.com/forums/...ml#post1970365
rgleason is offline   Reply With Quote
Old 25-11-2015, 03:02   #40
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Watchdog Plugin

basically, jon broke it with his patch because there are two enabled flags (one if the plugin is enabled, one if the actual alarms are enabled) and he got them confused, but it's no problem, corrected in git now.
seandepagnier is offline   Reply With Quote
Old 25-11-2015, 05:31   #41
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Watchdog Plugin

Thanks Sean, for diagnosing. Will try it.
rgleason is offline   Reply With Quote
Old 25-11-2015, 05:44   #42
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: Watchdog Plugin

Sean..
Sorry, no alert, nor red text. I've test both 1 and 2 minutes.
Test is however functional.

Håkan
Hakan is offline   Reply With Quote
Old 25-11-2015, 10:12   #43
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Watchdog Plugin

Sorry, try again now
seandepagnier is offline   Reply With Quote
Old 25-11-2015, 11:52   #44
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: Watchdog Plugin

Sean
Much better Now it's working, both red alert and sound. Thanks.

While on the line.....
Is it suitable to discuss the timer function for the Deadman?
The timer restarts if I move the mouse over the chart but also when the boat is still and the chart moves on screen, F2 - Auto follow mode. I think I understand the logic. You reset the timer when this function is called:
Code:
void watchdog_pi::SetCursorLatLon(double lat, double lon)
{
    m_cursor_lat = lat;
    m_cursor_lon = lon;
    m_cursor_time = wxDateTime::Now();
}
And it's called from OCPN every time the cursor has a new position. In F2 mode when cursor is moved over the OCPN screen edge the last position is saved as some kind of "edge" point. Now when the chart is moving there will be a new position for that edge point and the SetCursorLatLon is called and "our" timer is reset.
I agree this way of a moving cursor detection is efficient and smart to not build the wheel again since it was already there.
But for me the Deadman now has limited use since I mostly use the F2 function. Of course I could stop using F2 if I'm close to falling in sleep, but if I've that focus I'm probably not risky tired?

Is there another way for me to "fool" the plugin then to undo F2-mode?
Or could we discuss why OCPN needs a new cursor position when it's outside the edge, a fresh one is achieved as soon the cursor is within the edge again?
Or...?

Håkan
Hakan is offline   Reply With Quote
Old 25-11-2015, 13:53   #45
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Watchdog Plugin

Hakan,

I think I understand your problem. So the cursor is actually outside the opencpn window? In that case we can modify opencpn to not emit cursor positions as it makes little sense anyway.

Otherwise, what about the case in auto follow mode where the cursor is in the window?

Maybe we can just see if this routine is called at least twice in less than a second which would possibly work. Or we could query the actual screen coordinates of the cursor. What do you think?
seandepagnier is offline   Reply With Quote
Reply

Tags
plug


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
Plugin: DashBoard SethDart OpenCPN 644 02-04-2024 16:55
OpenCPN PlugIn Development bdbcat OpenCPN 161 04-09-2019 12:50
UncleMag Intro - Watchdog for World Cruisers ! UncleMag Meets & Greets 4 03-02-2011 00:47
Florida to Bahamas Watchdog countrybimm Atlantic & the Caribbean 54 20-04-2010 15:50

Advertise Here


All times are GMT -7. The time now is 12:20.


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.