|
|
13-02-2013, 15:49
|
#46
|
Registered User
Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,278
|
Re: WeatherFax...
Those interested in testing this new functionality on Windows, download the attached file, remove the .doc extension and copy to the plugins folder in your OpenCPN installation.
OpenCPN 3.1.x needed.
I patched the code to build successfully, so all the functionality should be there.
Pavel
|
|
|
13-02-2013, 18:05
|
#47
|
Registered User
Join Date: Mar 2012
Location: Nova Scotia
Boat: Wauquiez Centurion 42
Posts: 275
|
Re: WeatherFax...
Quote:
Originally Posted by nohal
Those interested in testing this new functionality on Windows, download the attached file, remove the .doc extension and copy to the plugins folder in your OpenCPN installation.
OpenCPN 3.1.x needed.
I patched the code to build successfully, so all the functionality should be there.
Pavel
|
Win 7 SP1 (64bit)
OpenCPN 3.1.1328
I enabled the plug in with the default preferences.
Selected new fax file (chose a fax from Boston that was stored as a tiff)
when I set the coordinates there was no mark on the fax to show where I had set the coordinates.
After selecting OK the fax was not visible, I could not change the scale or move the OpenCPN chart.
Deleting the fax from the popup window had no effect and I had to shut down OpenCPN to reset it.
|
|
|
14-02-2013, 00:30
|
#48
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,449
|
Re: WeatherFax...
Quote:
Originally Posted by LJH
Win 7 SP1 (64bit)
OpenCPN 3.1.1328
I enabled the plug in with the default preferences.
Selected new fax file (chose a fax from Boston that was stored as a tiff)
when I set the coordinates there was no mark on the fax to show where I had set the coordinates.
After selecting OK the fax was not visible, I could not change the scale or move the OpenCPN chart.
Deleting the fax from the popup window had no effect and I had to shut down OpenCPN to reset it.
|
So, once you entered the coordinates and selected ok, it basically locked up opencpn.
The image remained in the list of the popup window, or opencpn remained locked up?
Are you using opengl mode (in settings) ?
|
|
|
14-02-2013, 01:43
|
#49
|
Registered User
Join Date: Mar 2012
Location: Nova Scotia
Boat: Wauquiez Centurion 42
Posts: 275
|
Re: WeatherFax...
Yes,
I have the Use Accelerated Graphics (OpenGL) selected.
The image remained in the popup window list and OpenCPN remained locked up.
|
|
|
14-02-2013, 02:20
|
#50
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax...
Dear boat alexandra,
Downloaded the dll and used it in Opencpn 3.1.1405, OS is Win7. Click on Weatherfax image, popup, select New, browse to fax folder, select fax, New Window pops up which is independent and can be maximized, set two lat long points fine. Pick "OK", Fax window drops leaving the first popup, but nothing happens to the Opencpn chart screen. Can still move transparency and highlight the file name of the fax and hit Edit and set the two points again, but there is something wrong because when I drag the first popup window with "new, edit, delete" it duplicates, and if I have another program up (browser, email etc) the Opencpn Chart window starts showing a portion of that program where the chart is supposed to be. I've done this with OpenGL on and off.
The path name for fax folder was not accepted which may give you a clue.
Is there a way to run the plugin in debug mode? I could try that.
I used Pavel's dll let me know when I should update by "git" please.
Notice you have a Bristol 27 all the way over in New Zealand! Great boat, great country.
Rick
|
|
|
14-02-2013, 02:25
|
#51
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,449
|
Re: WeatherFax...
Quote:
Originally Posted by LJH
Yes,
I have the Use Accelerated Graphics (OpenGL) selected.
The image remained in the popup window list and OpenCPN remained locked up.
|
Can you try without opengl. Also. Is there any way possible you can use the debugger and find which line of code it has locked up on?
|
|
|
14-02-2013, 06:13
|
#52
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax...
Deleted opencpn-git/plugins/weatherfax_pi directory
In Cmd prompt went to opencpn-git/plugins directory
Executed git clone git://github.com/seandepagnier/weatherfax_pi.git ---100%
Then cd .. up to opencpn-git directory
Then cd build down into opencpn-git/build directory
Then cmake .. which executes ***building weatherfax_pi writing spec, config done, generating done, build files have been written to opnecpn-git/build and
under opencpn-git/build/plugins we find a new weatherfax_pi directory.
Then cmake[space]--build[space].[period]
Lots of messages while compiling
Warning C4996: std::_Transform1 -lots of these associated with weatherfax_pi.vcxproj
at bottom:
weatherfax_pi/src/FaxDecoder.cpp(248): error C2057: expected constant expression ...weatherfax_pi.vcxproj (wf_pi.vcxproj
weatherfax_pi/src/FaxDecoder.cpp(248): error C2466 cannot allocate an array of constant size 0 ...wf_pi.vcx.proj
weatherfax_pi/src/FaxDecoder.cpp(248): error C2133 'phasingPos' : unknown size ......wf_pi.vcx.proj
223 warnings
3 errors
|
|
|
14-02-2013, 06:25
|
#53
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax...
Ran MS VC++ 2010 Express and with Release and Win32 selected
picked Debug > Build
See output files attached.
C:\Data-Dart...Navigation\opencpn-git\build\plugins\weatherfax_pi\Release
still has old weatherfax_pi.dll dated from yesterday, so it did not complete.
Don't know how to configure a plugin to run in Debug mode, would like some instructions, but first I think we need to compile it. Should I comment out libaudio in cmake to start?
Also please do upload or send an audio file I will try it.
|
|
|
14-02-2013, 06:35
|
#54
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax...
Pavel, intended to thank you for your assistance to Sean earlier.
|
|
|
14-02-2013, 06:45
|
#55
|
Registered User
Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
|
Re: WeatherFax...
Using W7
Opengl: I only get the weatherfax pic (.tif downloaded with Airmail/viewfax) when selecting 'inverted'
Legacy display: fine without inverting
(see pics)
Request: being able to specify a lat/long template instead of using the calibrating procedure.
Re: UK weatherfaxes (downloaded with i.e. Airmail/viewfax) They use a polar stereographic projection, and I have little hope they can be displayed with OpenCpn.
Many thanks, Pavel...
|
|
|
14-02-2013, 09:27
|
#56
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax...
sailor54 What version of Opencpn? Did you use Pavel's dll?
How did you get it working? Mine hangs up using Pavel's dll and when I compile new git version with all libaudio it does not yet finish compiling. Some more specifics would be helpful.
I've been trying gif files. Maybe I should be trying tiff etc.
|
|
|
14-02-2013, 10:15
|
#57
|
Registered User
Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
|
Re: WeatherFax...
Quote:
Originally Posted by rgleason
sailor54 What version of Opencpn?
3.1.1411 (W7 - 32 bits)
Did you use Pavel's dll?
Yes
How did you get it working?
Using .tif pics downloaded with airmail/viewfax
(attached file, delete .doc)
Coordinates
64(° = N) -98(° = W)
14(° = N) 10(° = E)
Mine hangs up using Pavel's dll and when I compile new git version with all libaudio it does not yet finish compiling. Some more specifics would be helpful.
I've been trying gif files. Maybe I should be trying tiff etc.
|
.....................
|
|
|
14-02-2013, 10:45
|
#58
|
Registered User
Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
|
Re: WeatherFax...
Kubuntu 64 bit 12.10
I compiled my own. No problems.
All proceeds well until it's time to actually display the fax. This is what I get.
??
I tried to turn of OpenGL. not surprisingly the app crashed.
Thomas
|
|
|
14-02-2013, 11:00
|
#59
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax...
Thank you sailor54. Downloaded pwam99.tif put in FaxWx directory.
In OpenCpn 3.1.1405 using weatherfax_pi.dll plugin compiled by Pavel.
Was able to open Weatherfax icon, browse to FaxWx directory, could not see tiff file until I selected "all files". Might want to add "*.tiff" to supported image files. Then changed file to "*.tif" and it shows up under suppported image files.
Set Coordinates view. Picked "Set Coordinates" Hit ok.
Picked 30n 90w enter 30 then -90
Picked 60n 0 enter 60 then 0
Then OK fax coord entry window goes away
Leaves Weather Fax popup window showing the file highlighted.
Now the Opencpn chart area screen is getting corrupted by other stuff.
I close the Weather Fax popup and it goes away, the fax does not come up in Opencpn which I think is supposed to happen, and the corruption of the chart window continues. I havve to shut down Opencpn now.
Here is a view of Opencpn
I've turned off OpenGL and also have tried it when on.
This is a Dell XPS15 Laptop with Nvidia Geforce GT 540M
|
|
|
14-02-2013, 14:14
|
#60
|
Registered User
Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 387
|
Re: WeatherFax...
I cloned Nohal's weatherfax_pi.git with his windows fixes. With one small change it compiled and ran OK. PCM.cpp lines 42,43,44,45 change "isnan" to "_isnan".
1. Testing with noaa gifs, a large file will cause an error at weatherfax_pi.cpp line 246. If the file is cropped to about 1200X750 it works fine.
2. Using OpenGL I also noted that the image must be inverted to display.
This project has really begun well. Thanks.
Chuck
|
|
|
|
|
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
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|
|
|