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 27-11-2013, 19:02   #451
Registered User
 
rgleason's Avatar

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

Very interesting.

The FUNcube Dongle Pro+: LF to L band software-defined radio

FUNcube spacecraft now named AO-73 | Welcome to the FUNcube Web Site
Its not very inexpensive....might be good.

Quote:
Congratulations on the successful launch of the FUNcube-1 CubeSat, launched this morning from Yasny in Russia at 07:10:10.47 UTC November 21st 2013.
Since FUNcube-1 meets all of the requirements for being issued an OSCAR number, including coordination through IARU and requesting such a number; I, under authority vested in me by the President of AMSAT-NA, do hereby name FUNcube-1, ”AMSAT- OSCAR-73″ or “AO-73.”
I, and all at AMSAT-NA wish AMSAT- OSCAR-73 great success in fulfilling all of its mission objectives and we welcome it to the long list of Amateur Radio satellites.
73,
William (Bill) Tynan, W3XO
OSCAR Number Administrator
Manual
http://www.funcubedongle.com/MyImages/FCD2ManualV3.pdf

Satellite / Warehouse
https://warehouse.funcube.org.uk/rea...?satelliteId=2

WxtoImg
WXtoImg: software to decode APT and WEFAX signals from weather satellites
The world's best weather satellite (WXsat) signal to image decoder.
Simply connect a 137-138MHz FM communications receiver, scanner, or weather satellite receiver to your soundcard and get stunning colour images directly from weather satellites. The only other item you'll need is an antenna for receiving the circularly polarised signals. -Not Open Software!
rgleason is offline   Reply With Quote
Old 28-11-2013, 11:21   #452
Registered User

Join Date: Aug 2013
Location: Back in Montt.
Boat: Westerly Sealord
Posts: 8,187
Re: WeatherFax...

Quote:
Originally Posted by rgleason View Post
The only other item you'll need is an antenna for receiving the circularly polarised signals. -Not Open Software!
The MX-137 Weather Satellite Station - Wettersatelliten NOAA Receiver and Antenna, WRAASE electronic GmbH - Hardware - MX-137 is my recommendation for use afloat ( I have a QFH at home... no noticeable diff in rx quality).
Wraase also sell dedicated receivers.
Attached Thumbnails
Click image for larger version

Name:	wx.jpg
Views:	214
Size:	28.7 KB
ID:	71203  
El Pinguino is offline   Reply With Quote
Old 04-12-2013, 04:52   #453
Registered User

Join Date: May 2011
Posts: 847
Re: WeatherFax...

Quote:
Originally Posted by El Pinguino View Post
The MX-137 Weather Satellite Station - Wettersatelliten NOAA Receiver and Antenna, WRAASE electronic GmbH - Hardware - MX-137 is my recommendation for use afloat ( I have a QFH at home... no noticeable diff in rx quality).
Wraase also sell dedicated receivers.
Agreed, have the same setup. Best bang for the buck.

As for overlaying, I need a couple of weeks to test this and I will, it should be possible now to save the WxtoImg processed image as a jpg or tif or whatever and then import and calibrate it in the weather fax plug in by reading the lat/lon of corners on the wxtoimg screen.

A feature request for WxtoImg would be save the file in some kind of geo referenced image that the weatherfax pi understands I guess.

Then with a GRIB overlay on top of the sat image you have a good possibility to check the accuracy of the grib against the actual conditions.
Littlechay is offline   Reply With Quote
Old 04-12-2013, 05:24   #454
Registered User

Join Date: May 2011
Posts: 847
Re: WeatherFax...

Hmmm can't get this plugin to work anymore. Is it ok with west and south lat/ons.

I am trying with the Brazilian synoptic charts for the SW Atlantic. available here Centro de Hidrografia da Marinha - Servio Meteorolgico Marinho

One time the chart showed up but was displaced south by about 40 degrees.. then OCPN crashed.. usually I get no chart display or OCPN crashes.. reports sent each time.

I previously got a display with charts from Chile.. but this is the most useful chart on this side

Chris
Littlechay is offline   Reply With Quote
Old 04-12-2013, 05:50   #455
Registered User
 
rgleason's Avatar

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

The pluggin has illegal external references (look in tracker). See this and before.
http://www.cruisersforum.com/forums/...ml#post1366807

Will try to push changes once get I get github setup right. The diff is in Tracker, apply those and compile. If you don't compile you will have to wait.
rgleason is offline   Reply With Quote
Old 09-12-2013, 19:05   #456
Registered User
 
rgleason's Avatar

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

Tried to compile weather_fax_pi again.

git clone git://github.com/seandepagnier/weatherfax_pi.git

Followed Mike [Rasbats] directions to change the files, found in this post
http://www.cruisersforum.com/forums/...ml#post1364794

===

Code:
Following changes had to be made in wximgkap.cpp:

Add a function below 'typedef union' bit at the top of the file:

unsigned int log2( unsigned int x )
{
  unsigned int ans = 0 ;
  while( x>>=1 ) ans++;
  return ans ;
}

To avoid ambiguous call for 'sqrt'
Change    return sqrt(r); to read    return sqrt(float (r));
Change sqrt(3*cote*cote); to read sqrt(float(3*cote*cote));
Change sqrt(3*3*3) ; to read sqrt(float (3*3*3)) ;
Change sqrt(3*15*15) ; to read sqrt(float (3*15*15)) ;
Change sqrt(3*63*63) ; to read sqrt(float (3*63*63)) ;
And there may be some other sqrt to amend in the same way.

And the ambiguous call for 'ceil':
Change bits_out = ceil(log2( num_colors)); to read
bits_out = ceil(float (log2( num_colors)));

In InternetRetrievalDialog.cpp and SchedulesDialog.cpp

Add #include <wx/wx.h>

Add the 4 tinyxml files from the main branch to the weatherfax src folder and add to the project.
===


I did not make this change in wximgkap.cpp:

Code:
Comment out this bit 
/* color type and mask */

typedef struct
{
    uint8_t rgbRed, rgbGreen, rgbBlue, rgbReserved;
} RGBQUAD;

It's defined elsewhere.
Output:

Code:
Done Building Project "C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\ALL_BUILD.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\ALL_BUILD.vcxproj" (default target) (1) ->"C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj" (default target) 

(36) ->(ClCompile target) ->
..\..\..\plugins\weatherfax_pi\src\wximgkap.cpp(48): error C2371: 'RGBQUAD' : redefinition; different basic types 
[C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
    0 Warning(s)
    1 Error(s)
C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build>


Then when this change was made in wximgkap.cpp:

Code:
Comment out this bit 
/* color type and mask */

typedef struct
{
    uint8_t rgbRed, rgbGreen, rgbBlue, rgbReserved;
} RGBQUAD;

and ran cmake .. and cmake --build .


I ended up with 49 errors!!!

Code:
  All outputs are up-to-date.
ManifestResourceCompile:
  All outputs are up-to-date.
Link:
  All outputs are up-to-date.
Manifest:
  All outputs are up-to-date.
FinalizeBuildStatus:
  Deleting file "wmm_pi.dir\Debug\wmm_pi.unsuccessfulbuild".
  Touching "wmm_pi.dir\Debug\wmm_pi.lastbuildstate".
Done Building Project "C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins
\wmm_pi\wmm_pi.vcxproj" (default targets).
Done Building Project "C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\ALL_BUI
LD.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\ALL_BUILD.vcxproj" (default t
arget) (1) ->
"C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weather
fax_pi.vcxproj" (default target) (36) ->
(Link target) ->
  WeatherFax.obj : error LNK2019: unresolved external symbol "public: char const
 * __thiscall TiXmlElement::Attribute(char const *)const " (?Attribute@TiXmlElem
ent@@QBEPBDPBD@Z) referenced in function "double __cdecl AttributeDouble(class T
iXmlElement *,char const *,double)" (?AttributeDouble@@YANPAVTiXmlElement@@PBDN@
Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weat
herfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2001: unresolved external symbol "public: char
const * __thiscall TiXmlElement::Attribute(char const *)const " (?Attribute@TiXm
lElement@@QBEPBDPBD@Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugin
s\weatherfax_pi\weatherfax_pi.vcxproj]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "publi
c: char const * __thiscall TiXmlElement::Attribute(char const *)const " (?Attrib
ute@TiXmlElement@@QBEPBDPBD@Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\buil
d\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  WeatherFax.obj : error LNK2019: unresolved external symbol "public: class TiXm
lHandle __thiscall TiXmlHandle::FirstChild(void)const " (?FirstChild@TiXmlHandle
@@QBE?AV1@XZ) referenced in function "public: __thiscall WeatherFax::WeatherFax(
class weatherfax_pi &,class wxWindow *)" (??0WeatherFax@@QAE@AAVweatherfax_pi@@P
AVwxWindow@@@Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weath
erfax_pi\weatherfax_pi.vcxproj]
  WeatherFax.obj : error LNK2019: unresolved external symbol "public: bool __thi
scall TiXmlDocument::LoadFile(char const *,enum TiXmlEncoding)" (?LoadFile@TiXml
Document@@QAE_NPBDW4TiXmlEncoding@@@Z) referenced in function "public: __thiscal
l WeatherFax::WeatherFax(class weatherfax_pi &,class wxWindow *)" (??0WeatherFax
@@QAE@AAVweatherfax_pi@@PAVwxWindow@@@Z) [C:\Data-Dart\Up-Soft\Navigation\opencp
n-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2001: unresolved external symbol "public: bool
__thiscall TiXmlDocument::LoadFile(char const *,enum TiXmlEncoding)" (?LoadFile@
TiXmlDocument@@QAE_NPBDW4TiXmlEncoding@@@Z) [C:\Data-Dart\Up-Soft\Navigation\ope
ncpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "publi
c: bool __thiscall TiXmlDocument::LoadFile(char const *,enum TiXmlEncoding)" (?L
oadFile@TiXmlDocument@@QAE_NPBDW4TiXmlEncoding@@@Z) [C:\Data-Dart\Up-Soft\Naviga
tion\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  WeatherFax.obj : error LNK2019: unresolved external symbol "public: __thiscall
 TiXmlDocument::TiXmlDocument(void)" (??0TiXmlDocument@@QAE@XZ) referenced in **
nction "public: __thiscall WeatherFax::WeatherFax(class weatherfax_pi &,class wx
Window *)" (??0WeatherFax@@QAE@AAVweatherfax_pi@@PAVwxWindow@@@Z) [C:\Data-Dart\
Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj
]
  SchedulesDialog.obj : error LNK2001: unresolved external symbol "public: __thi
scall TiXmlDocument::TiXmlDocument(void)" (??0TiXmlDocument@@QAE@XZ) [C:\Data-Da
rt\Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxp
roj]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "publi
c: __thiscall TiXmlDocument::TiXmlDocument(void)" (??0TiXmlDocument@@QAE@XZ) [C:
\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax
_pi.vcxproj]
  WeatherFax.obj : error LNK2019: unresolved external symbol "public: class TiXm
lElement const * __thiscall TiXmlNode::NextSiblingElement(void)const " (?NextSib
lingElement@TiXmlNode@@QBEPBVTiXmlElement@@XZ) referenced in function "public: c
lass TiXmlElement * __thiscall TiXmlNode::NextSiblingElement(void)" (?NextSiblin
gElement@TiXmlNode@@QAEPAVTiXmlElement@@XZ) [C:\Data-Dart\Up-Soft\Navigation\ope
ncpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2001: unresolved external symbol "public: class
 TiXmlElement const * __thiscall TiXmlNode::NextSiblingElement(void)const " (?Ne
xtSiblingElement@TiXmlNode@@QBEPBVTiXmlElement@@XZ) [C:\Data-Dart\Up-Soft\Naviga
tion\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "publi
c: class TiXmlElement const * __thiscall TiXmlNode::NextSiblingElement(void)cons
t " (?NextSiblingElement@TiXmlNode@@QBEPBVTiXmlElement@@XZ) [C:\Data-Dart\Up-Sof
t\Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  WeatherFax.obj : error LNK2019: unresolved external symbol "public: virtual __
thiscall TiXmlNode::~TiXmlNode(void)" (??1TiXmlNode@@UAE@XZ) referenced in funct
ion "public: virtual __thiscall TiXmlDocument::~TiXmlDocument(void)" (??1TiXmlDo
cument@@UAE@XZ) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weath
erfax_pi\weatherfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2001: unresolved external symbol "public: virtu
al __thiscall TiXmlNode::~TiXmlNode(void)" (??1TiXmlNode@@UAE@XZ) [C:\Data-Dart\
Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj
]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "publi
c: virtual __thiscall TiXmlNode::~TiXmlNode(void)" (??1TiXmlNode@@UAE@XZ) [C:\Da
ta-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi
.vcxproj]
  WeatherFax.obj : error LNK2001: unresolved external symbol "public: virtual vo
id __thiscall TiXmlDocument::Print(struct _iobuf *,int)const " (?Print@TiXmlDocu
ment@@UBEXPAU_iobuf@@H@Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plu
gins\weatherfax_pi\weatherfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2019: unresolved external symbol "public: virtu
al void __thiscall TiXmlDocument::Print(struct _iobuf *,int)const " (?Print@TiXm
lDocument@@UBEXPAU_iobuf@@H@Z) referenced in function "public: __thiscall std::_
Iterator_base12::~_Iterator_base12(void)" (??1_Iterator_base12@std@@QAE@XZ) [C:\
Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax_
pi.vcxproj]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "publi
c: virtual void __thiscall TiXmlDocument::Print(struct _iobuf *,int)const " (?Pr
int@TiXmlDocument@@UBEXPAU_iobuf@@H@Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-
git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  WeatherFax.obj : error LNK2001: unresolved external symbol "public: virtual ch
ar const * __thiscall TiXmlDocument::Parse(char const *,class TiXmlParsingData *
,enum TiXmlEncoding)" (?Parse@TiXmlDocument@@UAEPBDPBDPAVTiXmlParsingData@@W4TiX
mlEncoding@@@Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weath
erfax_pi\weatherfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2019: unresolved external symbol "public: virtu
al char const * __thiscall TiXmlDocument::Parse(char const *,class TiXmlParsingD
ata *,enum TiXmlEncoding)" (?Parse@TiXmlDocument@@UAEPBDPBDPAVTiXmlParsingData@@
W4TiXmlEncoding@@@Z) referenced in function "public: __thiscall std::_Iterator_b
ase12::~_Iterator_base12(void)" (??1_Iterator_base12@std@@QAE@XZ) [C:\Data-Dart\
Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj
]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "publi
c: virtual char const * __thiscall TiXmlDocument::Parse(char const *,class TiXml
ParsingData *,enum TiXmlEncoding)" (?Parse@TiXmlDocument@@UAEPBDPBDPAVTiXmlParsi
ngData@@W4TiXmlEncoding@@@Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\
plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  WeatherFax.obj : error LNK2001: unresolved external symbol "protected: virtual
 class TiXmlNode * __thiscall TiXmlDocument::Clone(void)const " (?Clone@TiXmlDoc
ument@@MBEPAVTiXmlNode@@XZ) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\p
lugins\weatherfax_pi\weatherfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2019: unresolved external symbol "protected: vi
rtual class TiXmlNode * __thiscall TiXmlDocument::Clone(void)const " (?Clone@TiX
mlDocument@@MBEPAVTiXmlNode@@XZ) referenced in function "public: __thiscall std:
:_Iterator_base12::~_Iterator_base12(void)" (??1_Iterator_base12@std@@QAE@XZ) [C
:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfa
x_pi.vcxproj]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "prote
cted: virtual class TiXmlNode * __thiscall TiXmlDocument::Clone(void)const " (?C
lone@TiXmlDocument@@MBEPAVTiXmlNode@@XZ) [C:\Data-Dart\Up-Soft\Navigation\opencp
n-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  WeatherFax.obj : error LNK2001: unresolved external symbol "public: virtual bo
ol __thiscall TiXmlDocument::Accept(class TiXmlVisitor *)const " (?Accept@TiXmlD
ocument@@UBE_NPAVTiXmlVisitor@@@Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\
build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2019: unresolved external symbol "public: virtu
al bool __thiscall TiXmlDocument::Accept(class TiXmlVisitor *)const " (?Accept@T
iXmlDocument@@UBE_NPAVTiXmlVisitor@@@Z) referenced in function "public: __thisca
ll std::_Iterator_base12::~_Iterator_base12(void)" (??1_Iterator_base12@std@@QAE
@XZ) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\we
atherfax_pi.vcxproj]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "publi
c: virtual bool __thiscall TiXmlDocument::Accept(class TiXmlVisitor *)const " (?
Accept@TiXmlDocument@@UBE_NPAVTiXmlVisitor@@@Z) [C:\Data-Dart\Up-Soft\Navigation
\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  WeatherFax.obj : error LNK2001: unresolved external symbol "protected: virtual
 void __thiscall TiXmlDocument::StreamIn(class std::basic_istream<char,struct st
d::char_traits<char> > *,class std::basic_string<char,struct std::char_traits<ch
ar>,class std::allocator<char> > *)" (?StreamIn@TiXmlDocument@@MAEXPAV?$basic_is
tream@DU?$char_traits@D@std@@@std@@PAV?$basic_string@DU?$char_traits@D@std@@V?$a
llocator@D@2@@3@@Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\w
eatherfax_pi\weatherfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2001: unresolved external symbol "protected: vi
rtual void __thiscall TiXmlDocument::StreamIn(class std::basic_istream<char,stru
ct std::char_traits<char> > *,class std::basic_string<char,struct std::char_trai
ts<char>,class std::allocator<char> > *)" (?StreamIn@TiXmlDocument@@MAEXPAV?$bas
ic_istream@DU?$char_traits@D@std@@@std@@PAV?$basic_string@DU?$char_traits@D@std@
@V?$allocator@D@2@@3@@Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plug
ins\weatherfax_pi\weatherfax_pi.vcxproj]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "prote
cted: virtual void __thiscall TiXmlDocument::StreamIn(class std::basic_istream<c
har,struct std::char_traits<char> > *,class std::basic_string<char,struct std::c
har_traits<char>,class std::allocator<char> > *)" (?StreamIn@TiXmlDocument@@MAEX
PAV?$basic_istream@DU?$char_traits@D@std@@@std@@PAV?$basic_string@DU?$char_trait
s@D@std@@V?$allocator@D@2@@3@@Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\bu
ild\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  WeatherFax.obj : error LNK2019: unresolved external symbol "public: class TiXm
lElement const * __thiscall TiXmlNode::FirstChildElement(void)const " (?FirstChi
ldElement@TiXmlNode@@QBEPBVTiXmlElement@@XZ) referenced in function "public: cla
ss TiXmlElement * __thiscall TiXmlNode::FirstChildElement(void)" (?FirstChildEle
ment@TiXmlNode@@QAEPAVTiXmlElement@@XZ) [C:\Data-Dart\Up-Soft\Navigation\opencpn
-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2001: unresolved external symbol "public: class
 TiXmlElement const * __thiscall TiXmlNode::FirstChildElement(void)const " (?Fir
stChildElement@TiXmlNode@@QBEPBVTiXmlElement@@XZ) [C:\Data-Dart\Up-Soft\Navigati
on\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "publi
c: class TiXmlElement const * __thiscall TiXmlNode::FirstChildElement(void)const
 " (?FirstChildElement@TiXmlNode@@QBEPBVTiXmlElement@@XZ) [C:\Data-Dart\Up-Soft\
Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  WeatherFax.obj : error LNK2019: unresolved external symbol "public: bool __thi
scall TiXmlDocument::SaveFile(char const *)const " (?SaveFile@TiXmlDocument@@QBE
_NPBD@Z) referenced in function "public: virtual __thiscall WeatherFax::~Weather
Fax(void)" (??1WeatherFax@@UAE@XZ) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\
build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  WeatherFax.obj : error LNK2019: unresolved external symbol "public: void __thi
scall TiXmlElement::SetAttribute(char const *,char const *)" (?SetAttribute@TiXm
lElement@@QAEXPBD0@Z) referenced in function "public: virtual __thiscall Weather
Fax::~WeatherFax(void)" (??1WeatherFax@@UAE@XZ) [C:\Data-Dart\Up-Soft\Navigation
\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  WeatherFax.obj : error LNK2019: unresolved external symbol "public: __thiscall
 TiXmlElement::TiXmlElement(char const *)" (??0TiXmlElement@@QAE@PBD@Z) referenc
ed in function "public: virtual __thiscall WeatherFax::~WeatherFax(void)" (??1We
atherFax@@UAE@XZ) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\wea
therfax_pi\weatherfax_pi.vcxproj]
  WeatherFax.obj : error LNK2019: unresolved external symbol "public: class TiXm
lNode * __thiscall TiXmlNode::LinkEndChild(class TiXmlNode *)" (?LinkEndChild@Ti
XmlNode@@QAEPAV1@PAV1@@Z) referenced in function "public: virtual __thiscall Wea
therFax::~WeatherFax(void)" (??1WeatherFax@@UAE@XZ) [C:\Data-Dart\Up-Soft\Naviga
tion\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  WeatherFax.obj : error LNK2019: unresolved external symbol "public: __thiscall
 TiXmlDeclaration::TiXmlDeclaration(char const *,char const *,char const *)" (??
0TiXmlDeclaration@@QAE@PBD00@Z) referenced in function "public: virtual __thisca
ll WeatherFax::~WeatherFax(void)" (??1WeatherFax@@UAE@XZ) [C:\Data-Dart\Up-Soft\
Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2019: unresolved external symbol "__declspec(dl
limport) public: int __thiscall wxGenericImageList::Add(class wxBitmap const &)"
 (__imp_?Add@wxGenericImageList@@QAEHABVwxBitmap@@@Z) referenced in function "pu
blic: void __thiscall SchedulesDialog::Load(void)" (?Load@SchedulesDialog@@QAEXX
Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weat
herfax_pi.vcxproj]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "__dec
lspec(dllimport) public: int __thiscall wxGenericImageList::Add(class wxBitmap c
onst &)" (__imp_?Add@wxGenericImageList@@QAEHABVwxBitmap@@@Z) [C:\Data-Dart\Up-S
oft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2001: unresolved external symbol "public: virtu
al int __thiscall wxGenericImageList::GetImageCount(void)const " (?GetImageCount
@wxGenericImageList@@UBEHXZ) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\
plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "publi
c: virtual int __thiscall wxGenericImageList::GetImageCount(void)const " (?GetIm
ageCount@wxGenericImageList@@UBEHXZ) [C:\Data-Dart\Up-Soft\Navigation\opencpn-gi
t\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2001: unresolved external symbol "public: virtu
al bool __thiscall wxGenericImageList::GetSize(int,int &,int &)const " (?GetSize
@wxGenericImageList@@UBE_NHAAH0@Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\
build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "publi
c: virtual bool __thiscall wxGenericImageList::GetSize(int,int &,int &)const " (
?GetSize@wxGenericImageList@@UBE_NHAAH0@Z) [C:\Data-Dart\Up-Soft\Navigation\open
cpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2001: unresolved external symbol "public: virtu
al bool __thiscall wxGenericImageList::Draw(int,class wxDC &,int,int,int,bool)"
(?Draw@wxGenericImageList@@UAE_NHAAVwxDC@@HHH_N@Z) [C:\Data-Dart\Up-Soft\Navigat
ion\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "publi
c: virtual bool __thiscall wxGenericImageList::Draw(int,class wxDC &,int,int,int
,bool)" (?Draw@wxGenericImageList@@UAE_NHAAVwxDC@@HHH_N@Z) [C:\Data-Dart\Up-Soft
\Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]
  SchedulesDialog.obj : error LNK2019: unresolved external symbol "public: char
const * __thiscall TiXmlElement::Attribute(char const *,int *)const " (?Attribut
e@TiXmlElement@@QBEPBDPBDPAH@Z) referenced in function "public: bool __thiscall
SchedulesDialog::OpenXML(class wxString)" (?OpenXML@SchedulesDialog@@QAE_NVwxStr
ing@@@Z) [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_p
i\weatherfax_pi.vcxproj]
  C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\Debug\
weatherfax_pi.dll : fatal error LNK1120: 22 unresolved externals [C:\Data-Dart\U
p-Soft\Navigation\opencpn-git\build\plugins\weatherfax_pi\weatherfax_pi.vcxproj]


    0 Warning(s)
    49 Error(s)

Time Elapsed 00:00:07.77

C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build>
rgleason is offline   Reply With Quote
Old 10-12-2013, 05:55   #457
Registered User
 
rgleason's Avatar

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

Sean is sailing north towards Phillipines, when he has internet service he'll post, but for now we hope he is sailing in good weather, and we are on our own insofar as getting this plugin running. I've taken this as far as I am able with my skill set, so if someone has some suggestions or guidance, that would be very welcome.
rgleason is offline   Reply With Quote
Old 10-12-2013, 09:59   #458
Registered User

Join Date: May 2012
Posts: 1,206
Re: WeatherFax...

OpenCPN 3.3.1117 from https://github.com/OpenCPN/OpenCPN
weatherfax_pi from https://github.com/seandepagnier/weatherfax_pi

Using VSC++ 2010, Win 7, OpenCPN 3.3.1117

In WeatherFaxImage.cpp:
Changed ISNAN to read _ISNAN

Or you can use a define like this at the head of the file (like PCM.cpp)
#ifdef __MSVC__
#define isnan _isnan
#endif

Following changes had to be made in wximgkap.cpp:

To avoid the log2 problem I went back to basics:
Change
bits_out = ceil(log2( num_colors)); to read ...
bits_out = ceil(log(float (num_colors))/log(float (2)));

To avoid ambiguous call for 'sqrt'
Change return sqrt(r); to read return sqrt(float (r));
Change sqrt(3*cote*cote); to read sqrt(float(3*cote*cote));
Change sqrt(3*3*3) ; to read sqrt(float (3*3*3)) ;
Change sqrt(3*15*15) ; to read sqrt(float (3*15*15)) ;
Change sqrt(3*63*63) ; to read sqrt(float (3*63*63)) ;
And there may be some other sqrt to amend in the same way.

Commented out this bit
/* color type and mask */

typedef struct
{
uint8_t rgbRed, rgbGreen, rgbBlue, rgbReserved;
} RGBQUAD;

It's defined elsewhere.

In InternetRetrievalDialog.cpp and SchedulesDialog.cpp

Add #include <wx/wx.h>

Add the 4 tinyxml files from the main branch to the weatherfax src folder and add to the project.

This compiled but with a lot of warnings. Seems to work.

Tested with the Chilean fax from Navy Hydrography Center - Marine Meteorological Service This looks ok?

The compiled dll is attached. Remove '.pdf' in the normal way. Please test.

Mike
Attached Files
File Type: pdf weatherfax_pi.dll.pdf (510.0 KB, 47 views)
Rasbats is offline   Reply With Quote
Old 11-12-2013, 16:58   #459
Registered User
 
rgleason's Avatar

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

Dear Mike,

I really appreciate your help. I am trying to keep up with your help. The last two or three days, off and on, I have been working on weatherfax and trying to learn git and github.

I have tried the changes you've suggested four times and committed it to my fork of Sean's weatherfax_pi, so you can confirm what I have done.


I have written the sequence and results below, for the last time that I did it.
Unfortunately I have not been able to get a weatherfax_pi.dll compiled yet, results in lots of errors and no warnings.

Thanks again! You are awesome. Rick. (I am going to follow all your work on Weather_routing next.)

https://github.com/rgleason/weatherfax_pi
Look for the most recent "Changes to resolve Window MSVC++ Compiling problems..." in the history
https://github.com/rgleason/weatherf...7cd0f61ea86d3c

=====
Attached Files
File Type: doc Weatherfax_pi-MSVC-compile-effort.doc (75.9 KB, 58 views)
rgleason is offline   Reply With Quote
Old 11-12-2013, 18:30   #460
Registered User

Join Date: May 2011
Posts: 847
Re: WeatherFax...

Quote:
Originally Posted by Rasbats View Post

The compiled dll is attached. Remove '.pdf' in the normal way. Please test.

Mike
Thanks for that update Mike, great work.

I too tested it with the "Brazilian" fax

It works, but I discovered a big limitation in it's use when working with GRIBS. Please see attached screen shots.

Normally you will only download a GRIB file for your immediate surrounding when at sea with only HF or low bandwidth satellite.. The problem is that as you zoom in the fax overlay disappears. I have a very large GRIB file in the example and even zooming into that level the FAX disappears.

Cheers
Chris

P.S. What's this about weather routing?
Littlechay is offline   Reply With Quote
Old 12-12-2013, 04:42   #461
Registered User
 
rgleason's Avatar

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

Thanks Littlechay, I was going to try the dll this morning.
Mike, do you have any idea what I am missing in the commit, so that it will compile for me?

https://github.com/rgleason/weatherfax_pi
Look for the most recent "Changes to resolve Window MSVC++ Compiling problems..." in the history
https://github.com/rgleason/weatherf...7cd0f61ea86d3c

Thanks.
rgleason is offline   Reply With Quote
Old 12-12-2013, 07:33   #462
Registered User

Join Date: May 2012
Posts: 1,206
Re: WeatherFax...

Rick,

The following are needed:

Change CMakeLists.txt in plugins/weatherfax_pi directory to add src/tinyxml.h src/tinyxml.cpp src/tinyxmlerror.cpp src/tinyxmlparser.cpp

In InternetRetrievalDialog.cpp and SchedulesDialog.cpp

Put #include <wx/wx.h> before any other includes!!! If anyone is compiling for Mac OSX this might also solve their problem.

If you don't edit CMakeLists.txt:

Add the 4 tinyxml files from the main branch to the weatherfax src folder and add to the project.

Google helped me find the include problem.

Please test.

Mike
Rasbats is offline   Reply With Quote
Old 12-12-2013, 08:51   #463
Registered User

Join Date: May 2012
Posts: 1,206
Re: WeatherFax...

Littlechay,

For the disappearing fax image:

With NON-OpenGL rendering there is a parameter set in the function:

void WeatherFaxImage::RenderImage(wxDC &dc, PlugIn_ViewPort *vp)

/* dont go too huge */
if(iw > 4096 || ih > 4096)
return;

I changed this to: iw > 12000 || ih > 12000 and I can zoom in much closer before the fax disappears. Not sure if there are any side effects. There is still a final limit to the zoom-in you can use.

If you want to try this fix I have attached the dll. Perhaps rename your old dll as a backup!!!

Suggest using flyspray to request this feature from the developer, Sean D'Epagnier, if you see a need.

Say hello to Port Stanley. Some good times spent in those parts.

Mike
Attached Files
File Type: pdf weatherfax_pi.dll.pdf (510.0 KB, 54 views)
Rasbats is offline   Reply With Quote
Old 12-12-2013, 12:47   #464
Registered User

Join Date: May 2011
Posts: 847
Re: WeatherFax...

Quote:
Originally Posted by Rasbats View Post
If you want to try this fix I have attached the dll. Perhaps rename your old dll as a backup!!!

Suggest using flyspray to request this feature from the developer, Sean D'Epagnier, if you see a need.

Say hello to Port Stanley. Some good times spent in those parts.

Mike
Thanks Mike, that works fine. See attached which shows the closest limit that I could zoom before the fax disappeared. You can really see how the GRIB and the human forecast don't match

What were you doing in these parts? Sailing, who with/what on? If so we probably met.

Cheers
Chris
Littlechay is offline   Reply With Quote
Old 12-12-2013, 14:18   #465
Registered User
 
rgleason's Avatar

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

Quote:
Rick, The following are needed:
  1. Change CMakeLists.txt in plugins/weatherfax_pi directory to add src/tinyxml.h src/tinyxml.cpp src/tinyxmlerror.cpp src/tinyxmlparser.cpp
  2. In InternetRetrievalDialog.cpp and SchedulesDialog.cpp
  3. Put #include <wx/wx.h> before any other includes!!! If anyone is compiling for Mac OSX this might also solve their problem.
  4. If you don't edit CMakeLists.txt:
  5. Add the 4 tinyxml files from the main branch to the weatherfax src folder and add to the project.
  6. Google helped me find the include problem.
Please test. Mike
Mike, these changes did the trick. The plugin is working now in Windows! Thank you. Will commit and send to Sean with your changes.

Sean has mapped out some very ambitious improvements here! This is going to become a great tool for anyone able to get the radio signals for WeatherFax.
Attached Thumbnails
Click image for larger version

Name:	weatherfax_HF_schedules.jpg
Views:	243
Size:	421.4 KB
ID:	71993   Click image for larger version

Name:	weatherfax_working_in_windows.jpg
Views:	245
Size:	406.6 KB
ID:	71994  

rgleason is offline   Reply With Quote
Reply

Tags
paracelle


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
For Sale: SSB, Tuner, Amp, WeatherFax Palarran Classifieds Archive 7 19-03-2011 07:22
Help with WeatherFax and SeaTTY desierto Navigation 2 12-12-2008 20:36
Basic Weatherfax reception Tnflakbait Marine Electronics 3 23-09-2008 21:55
How do I set myself up with weatherfax? tracker_46 Marine Electronics 4 12-10-2006 14:51
Weatherfax Recommendations Please Salacia Marine Electronics 3 03-07-2005 13:28

Advertise Here


All times are GMT -7. The time now is 16:36.


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.