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 06-06-2013, 05:48   #46
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: new watchman plugin

Quote:
Originally Posted by hoolie View Post
Perhaps you use could use several sound files to vary the intensity/urgency of the alarm?
Yes, several files could be used.. but it is more work to implement. Would be useful maybe to use completely different sounds so a more urgent one might sound different.

Any ideas for additional alarms that could be added? I would like to add wind speed, depth sounder, and bilge water alarm but I lack hardware which would provide these inputs.
seandepagnier is offline   Reply With Quote
Old 06-06-2013, 10:57   #47
Registered User

Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 387
Re: new watchman plugin

Quote:
Originally Posted by boat_alexandra View Post
Quote:
Originally Posted by ChuckSK
Try this fix for the sound problem. It does not seem related, but it worked.

Code:
-class watchman_pi : public opencpn_plugin_18, public wxEvtHandler
+class watchman_pi : public wxEvtHandler, public opencpn_plugin_18
{
public:
watchman_pi(void *ppimgr);
Chuck

Gah.. how did you even come up with that?

These clips should show the process.

Chuck
Attached Thumbnails
Click image for larger version

Name:	watchman3.JPG
Views:	194
Size:	174.0 KB
ID:	61987   Click image for larger version

Name:	watchman5.JPG
Views:	236
Size:	206.6 KB
ID:	61988  

Click image for larger version

Name:	watchman4.JPG
Views:	212
Size:	129.7 KB
ID:	61989  
ChuckSK is offline   Reply With Quote
Old 06-06-2013, 18:56   #48
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,765
Images: 2
Re: new watchman plugin

Hakan, Just got back, hope you get this. Been preoccupied & battling with engine, looks like we need a new one, or become engineless like boat_alexandra!

It's been compiled with latest Git fetch origin/master, plus git pull origin master. Took several tries as I got errors initially.

You may need to opencpn.exe with this compile. If so, let me know please.

( I just tried the new compile with my current compile of opencpn.exe and it fails and brings down Opencpn. I have to turn off Watchman in the ini file to fix this. Also under MSVC++ in debug mode, I find immediate errors and breaks. Have to mess with this more. Tomorrow.)
Attached Files
File Type: doc watchman_pi.dll.doc (134.0 KB, 67 views)
rgleason is offline   Reply With Quote
Old 07-06-2013, 01:03   #49
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: new watchman plugin

Quote:
Originally Posted by ChuckSK View Post
These clips should show the process.

Chuck
Chuck,
Thanks for taking the time to find this and explaining it. I switched the order now in git.

According to c++ there is no difference at all besides internal data storage which doesn't matter to the program. I can see how this could decrease performance, sure, but causing incorrect code to be generated.. this is a compiler bug not mine.

It's sad they understand the issue enough to write a description, yet don't fix their compiler.

Anyone tried mingw?
seandepagnier is offline   Reply With Quote
Old 07-06-2013, 04:11   #50
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,765
Images: 2
Re: new watchman plugin

I don't know if the attached text file of an email 5-24 to Pavel and Sean will help. Sean may have missed it while he was away, but Watchman.dll used to run in Debug MSVC mode but does not now....some confilicts with error checking I think, even with Chuck's suggestion to switch in post #47
Attached Files
File Type: doc Watchman-5-24-2013-breaks.doc (5.4 KB, 73 views)
rgleason is offline   Reply With Quote
Old 07-06-2013, 04:20   #51
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,765
Images: 2
Re: new watchman plugin

After git fetch and pull, MSVC shows Opencpn 3.3.604, I will try git clone watchman again, but I believe it causes crash when enabled in ini.
rgleason is offline   Reply With Quote
Old 07-06-2013, 06:42   #52
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: new watchman plugin

does it still crash? Maybe multiple inheritance is a bad idea if visual studio is compiling.
seandepagnier is offline   Reply With Quote
Old 07-06-2013, 06:51   #53
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,765
Images: 2
Re: new watchman plugin

I'll git clone in case there has been some update to the plugin. Then let you know.
rgleason is offline   Reply With Quote
Old 07-06-2013, 07:10   #54
Registered User

Join Date: Apr 2012
Location: Port Steven, NSW, Australia
Boat: Van der Stadt Samoa 48
Posts: 142
Re: new watchman plugin

The last DLL in post #48 make O crash.

Lars
Taarnskov is offline   Reply With Quote
Old 07-06-2013, 08:55   #55
Registered User

Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 387
Re: new watchman plugin

The watchman plugin starts a timer to check alarm conditions before the plugin manager sends in the last position fix. So the checks are done with m_lastfix.lat and m_lastfix.lon equal to NAN.

Chuck
ChuckSK is offline   Reply With Quote
Old 08-06-2013, 16:53   #56
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: new watchman plugin

Right.. I fixed this but I don't have internet many days so I could not update. For some reason the invalid fix lat and lon are nan, but cog is something different.
seandepagnier is offline   Reply With Quote
Old 08-06-2013, 18:13   #57
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,765
Images: 2
Re: new watchman plugin

Do you want me to try git clone & compile again?
rgleason is offline   Reply With Quote
Old 09-06-2013, 14:48   #58
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,765
Images: 2
Re: new watchman plugin

Ok did git fetch pull and git clone of this plugin in Lunux Ubuntu
Watchman_pi git clone git://github.com/seandepagnier/watchman_pi.git
Then compiled it, and tested it using Rasch.nmea file and VDR plugin. Tried to get screen capture of boats almost coliding. I was just a bit late a couple of times....

At first I was wondering what this plugin would actually do, now I am convinced that it has some realy good possibillities.

Like the Course error alarm, Landfall alarm and Ais and Gps off alarms. The last frame show Landfall alarrm in red, but the sound did not operate in this case.

-These suggestions below are "future" possibilities....

1. It would be nice to be able to TEST the alerts and alarms to see if they work or are connected coreectly (hardware-software thing).
2. Someone (not Sean) could add a second louder alarm and user defined wait period duplicating a couple of lines of existing code. The two alarms would just sound at the same time.
3. I have hopes this will run in Windows. Hakan had some success previously, perhaps he can test more in real world situation. It has geat possibilities.
4. It has no GPS and no AIS alarms. Doe it have an AIS Boat Collision alarm?
5. How about MARPA Boat collision alarrm? -This is too sophisticated right now, but perhaps later. -How many have Marrpa?
6. Maybe a DSC and MOB alarm upon an MOB DSC signal?
7. What else?

Sean, at first I had trouble picturing what this would actually do. Now I get it. Thanks.
Attached Thumbnails
Click image for larger version

Name:	Watchman-setup.jpg
Views:	231
Size:	310.4 KB
ID:	62206   Click image for larger version

Name:	Screenshot from 2013-06-09 17:24:50.jpg
Views:	183
Size:	288.3 KB
ID:	62207  

Click image for larger version

Name:	Screenshot from 2013-06-09 17:25:50.jpg
Views:	156
Size:	300.9 KB
ID:	62208   Click image for larger version

Name:	Screenshot from 2013-06-09 17:26:23.jpg
Views:	239
Size:	301.2 KB
ID:	62209  

Click image for larger version

Name:	Watchman-Landfall-detected.jpg
Views:	179
Size:	319.2 KB
ID:	62210  
rgleason is offline   Reply With Quote
Old 12-06-2013, 13:40   #59
Registered User
 
rgleason's Avatar

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

Linux Watchman screen shots showing a Test Alarm and recent improvements by Sean.

Note the current Wiindows version does not have as much info in the first screen for some reason. (See below)
Attached Thumbnails
Click image for larger version

Name:	Watchman-1st-Window.png
Views:	623
Size:	16.4 KB
ID:	62385   Click image for larger version

Name:	Watchman-Preferences.png
Views:	204
Size:	60.5 KB
ID:	62386  

rgleason is offline   Reply With Quote
Old 12-06-2013, 13:48   #60
Registered User
 
rgleason's Avatar

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

Windows7 Watchman

Missing some information lines in the first Display about warnings etc. Has the Testing Alarm, and it works Thank you Sean.

lso I can confirm the the sound is set to 4bells.wav for alarms and the timed alarn works in windows and linux I believe.

What would the type of commands that we enter be? Like Dos commands?

Thank you Sean.
Attached Thumbnails
Click image for larger version

Name:	Windows7-Watchman-missing-some-data-1st-window.jpg
Views:	161
Size:	298.1 KB
ID:	62387  
rgleason 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
Logbook Konni for OpenCPN konni OpenCPN 1129 22-07-2024 03:15
OpenCPN Release Candidate Version 3.1.1411 Released bdbcat OpenCPN 48 24-02-2013 06:59
GRIB Weather Mark Ward OpenCPN 26 12-02-2012 21:33
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 04:31

Advertise Here


All times are GMT -7. The time now is 10:35.


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.