Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 23-05-2013, 04:51   #31
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,958
Re: new watchman plugin

Hakan, would you test the sound alarms to see if they work in Windows?
In MSVC I am getting an immediate "memory fault error at a certain location" whenever I try to Debug Opencpn, it freezes immediately and the mem fault comes up. Pavel traced it to the Watchman plugin trying to read a sound file that may not exist, however I believe it does exist at
SoundFilepath=C:\\Program Files (x86)\\OpenCPN\\sounds\\1bells.wav

-This path may be specific to my Opencpn... but it is causing this error in MSVC Debug so I cannot run Opencpn in debug mode. When I remove watchman.dll MSVC Debug of Opencpn works.

...So do sounds work with this plugiin in Windows?
__________________

__________________
rgleason is offline   Reply With Quote
Old 23-05-2013, 16:10   #32
Registered User

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

Try this fix for the sound problem. It does not seem related, but it worked.

Code:
diff --git a/src/watchman_pi.h b/src/watchman_pi.h
index b17c766..abd03f9 100644
--- a/src/watchman_pi.h
+++ b/src/watchman_pi.h
@@ -87,7 +87,7 @@ inline double round(double n) { return n < 0.0 ? ceil(n - 0.5) : floor(n + 0.5);
 class ocpnDC;
 class WatchmanDialog;
 
-class watchman_pi : public opencpn_plugin_18, public wxEvtHandler
+class watchman_pi : public wxEvtHandler, public opencpn_plugin_18 
 {
 public:
       watchman_pi(void *ppimgr);
Chuck
__________________

__________________
ChuckSK is offline   Reply With Quote
Old 23-05-2013, 17:03   #33
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,958
Re: new watchman plugin

Thankyou, Chuck. I will try that change.
__________________
rgleason is offline   Reply With Quote
Old 23-05-2013, 21:48   #34
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,958
Re: new watchman plugin

Watchman Beta has been updated and compiled See Plugin Threads Post 32
__________________
rgleason is offline   Reply With Quote
Old 24-05-2013, 15:53   #35
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,958
Re: new watchman plugin

Beta Plugins have been Updated
See Plugins Threads (List) Post #38

This plugin has been updated, but since doing that, the problems with the sound card appear to be worse. When enabled in the release normal opencpn version, the program now shuts down with a message, and turns off watchman. When opencpn is opened again, watchman is turned off, which is good because otherwise the entire program would hang and users would have to edit the opencpn.ini file to set Watchman enable=0! This plugin needs some work to be useable in Windows. I have even implemented Chuck's suggestion, but it did not help with this version.

So why upload it? Perhaps someone will be kind enough to verify my experience!

Sorry Hakan, we'll have to hope there is a revised update.
__________________
rgleason is offline   Reply With Quote
Old 27-05-2013, 05:03   #36
Registered User

Join Date: Apr 2012
Location: Port Vila, Vanuatu
Boat: Van der Stadt Samoa 48
Posts: 127
Re: new watchman plugin

It think it could be a god idea if it is possible to setup the alarm sound, so that it begins rather silent so that the crew not on watch can sleep. The intensity of the alarm should increase after a while if the crew on watch do not push the button. This will wake the rest of the crew.

Lars
__________________
Taarnskov is offline   Reply With Quote
Old 27-05-2013, 05:36   #37
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,958
Re: new watchman plugin

I should make it clear in Post #35 above that I was referring to the Windows DLL version of the plugin. Please be my guest and try it, it would be nice if it could be fixed. The Linux version runs well from my limited experience.

Watchman_pi Linux version is here:
git clone git://github.com/seandepagnier/watchman_pi.git

I like Lars idea.
__________________
rgleason is offline   Reply With Quote
Old 28-05-2013, 06:49   #38
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,921
Re: new watchman plugin

Rick..(&Sean)
Long time no wifi. I've tried the watchman_win32_pi110_v03_pi.dll with regards to playing the sound on time out and it worked fine. Also the time counting ticks. Any other functions not checked yet.
Håkan
__________________
Hakan is offline   Reply With Quote
Old 28-05-2013, 15:26   #39
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,958
Re: new watchman plugin

Hakan, thats good news, I was having difficulty getting the most recent one to run. Try it, but keep the first one! Its posted on File Thingie download for Beta.
__________________
rgleason is offline   Reply With Quote
Old 02-06-2013, 05:17   #40
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,958
Re: new watchman plugin

Hakan, Have you downloaded the current version, the one that I said was not working? Post 35
Sean would like to get this working completely and release it for use, so any test and additional information, suggesttions, now would be the time!!
__________________
rgleason is offline   Reply With Quote
Old 02-06-2013, 06:50   #41
Registered User

Join Date: Sep 2010
Posts: 127
Re: new watchman plugin

I played with watchman_win32_pi110_v03_pi.dll plugin with VDR data from my last sail trip and it is working fine. Landfall Alarm, DeadMan Alarm and MNEA Data Alarm work with sound on windows without any problem. Nice work.

Kubek
__________________
kubek is offline   Reply With Quote
Old 02-06-2013, 08:59   #42
Registered User

Join Date: Apr 2012
Location: Port Vila, Vanuatu
Boat: Van der Stadt Samoa 48
Posts: 127
Re: new watchman plugin

I think that the parameter "not ticket on" should not be visible on the main screen. There is no reason why should know the distance to my latest anchorage all the way to the Bahamas from the Canaries

Lars
__________________
Taarnskov is offline   Reply With Quote
Old 03-06-2013, 03:53   #43
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,958
Re: new watchman plugin

Thanks Lars and Kubek, that is very helpful. I am sure Sean will appreciate
__________________
rgleason is offline   Reply With Quote
Old 05-06-2013, 22:37   #44
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,786
Re: new watchman plugin

Quote:
Originally Posted by ChuckSK View Post
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?

Quote:
Originally Posted by Taarnskov View Post
It think it could be a god idea if it is possible to setup the alarm sound, so that it begins rather silent so that the crew not on watch can sleep. The intensity of the alarm should increase after a while if the crew on watch do not push the button. This will wake the rest of the crew.

Lars
This is an excellent suggestion, however there is currently no means to adjust volume. The only way I can think of is to execute a command, and specify volume there.. but a few changes are needed.

Quote:
Originally Posted by Taarnskov View Post
I think that the parameter "not ticket on" should not be visible on the main screen. There is no reason why should know the distance to my latest anchorage all the way to the Bahamas from the Canaries

Lars
Yes of course. I think if the alarm is not enabled maybe its statistics should not appear either.
__________________
boat_alexandra is offline   Reply With Quote
Old 06-06-2013, 05:41   #45
Registered User

Join Date: Jan 2011
Location: UK/France
Boat: Gib'Sea 402
Posts: 190
Re: new watchman plugin

Quote:
Originally Posted by boat_alexandra View Post
... ...

This is an excellent suggestion, however there is currently no means to adjust volume. The only way I can think of is to execute a command, and specify volume there.. but a few changes are needed.

... ... ...
Perhaps you use could use several sound files to vary the intensity/urgency of the alarm?
__________________

__________________
hoolie is online now   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 823 07-06-2017 09:32
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



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.