Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 24-02-2013, 17:45   #16
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,379
Re: celestial navigation plugin redux

ahha,boat_alexandra. None needed either! I suppose then it's just a button that is part of the "plugins " gui in case a developer needs one.
__________________

__________________
HappySeagull is offline   Reply With Quote
Old 24-02-2013, 19:35   #17
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,007
Re: celestial navigation plugin redux

I guess I was wrong, I have both 1405 and 1417 installed.
This is the log file plugins area for 1417. Is anything else needed? The Celestial Plugin does not seem to appear. I have the data files in place. C:\Program Files (x86)\OpenCPN 3.1.1417\plugins\celestial_navigation\data - three files there.

Code:
10:19:41 PM: Opening NMEA Datastream Serial:COM8
10:19:42 PM: PlugInManager searching for PlugIns in location C:\Program Files (x86)\OpenCPN 3.1.1417\plugins
10:19:42 PM: PlugInManager: Loading PlugIn: C:\Program Files (x86)\OpenCPN 3.1.1417\plugins/celestial_navigation_pi.dll
10:19:42 PM: Error: Failed to load shared library 'C:\Program Files (x86)\OpenCPN 3.1.1417\plugins/celestial_navigation_pi.dll' (error 193: unknown error c1)
10:19:42 PM:    PlugInManager: Cannot load library: C:\Program Files (x86)\OpenCPN 3.1.1417\plugins/celestial_navigation_pi.dll
10:19:42 PM: PlugInManager: Loading PlugIn: C:\Program Files (x86)\OpenCPN 3.1.1417\plugins/dashboard_pi.dll
10:19:42 PM:   C:\Program Files (x86)\OpenCPN 3.1.1417\plugins/dashboard_pi.dll Version detected: 106
10:19:42 PM: PlugInManager: Loading PlugIn: C:\Program Files (x86)\OpenCPN 3.1.1417\plugins/grib_pi.dll
10:19:42 PM:   C:\Program Files (x86)\OpenCPN 3.1.1417\plugins/grib_pi.dll Version detected: 107
10:19:42 PM: OpenGL-> Renderer String: Intel(R) HD Graphics Family
Earlier I wrote:
Quote:
Then I tried downloading Pavel's dll and then the three subsequent files, placing them under the plugins\celestical_navigation\data directory.
---I had the sub-dir spelled correctly, sorry.

I also tried changing the directory to celestial_navigation_pi\data but that did not work.
__________________

__________________
rgleason is offline   Reply With Quote
Old 24-02-2013, 20:09   #18
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,007
Re: celestial navigation plugin redux

Regarding Git and Compiling

* go to the plugin subdirectory in your OpenCPN source tree
* git clone https://github.com/seandepagnier/cel...igation_pi.git
Build as normally:
* cd ..
* cd build
* cmake ..
* cmake --build .

Had 12 warnings and 0 Errors.
Then built Release with MS VC++2010 Express
Had no failures.

Checked C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins
There was no celestial_navigation_pi subdirectory and no Release celestial_navigation.dll was found. The other plugins all had fresh dates and times so this plugin did not compile.
__________________
rgleason is offline   Reply With Quote
Old 24-02-2013, 20:40   #19
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,007
Re: celestial navigation plugin redux

Well, I made another mistake. Did not execute git from plugins directory.
Found the celestial_navigation_pi file in the parent directory and moved it to plugins
and then executed the commands again. Got 1 warning and 1 Error.
See attached screen capture

Could not find recently created build release or debug dll's for the plugin.
Attached Thumbnails
Click image for larger version

Name:	celestial-nav-complie.png
Views:	153
Size:	87.4 KB
ID:	55691  
__________________
rgleason is offline   Reply With Quote
Old 24-02-2013, 20:48   #20
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,007
Re: celestial navigation plugin redux

Dit it again and found a couple of other celestial_navigation_pi messages/errors.
See attached.
Attached Thumbnails
Click image for larger version

Name:	celestial-nav-complie-2.png
Views:	158
Size:	87.8 KB
ID:	55692  
__________________
rgleason is offline   Reply With Quote
Old 25-02-2013, 14:28   #21
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: BVI
Boat: bristol 27
Posts: 2,640
Re: celestial navigation plugin redux

My internet is barely usable so I'm having trouble loading the images you posted. In any case, the error is probably the trunc thing, let me know if there are any others, I'll have fixed shortly.
__________________
boat_alexandra is offline   Reply With Quote
Old 25-02-2013, 21:08   #22
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,007
Re: celestial navigation plugin redux

Sorry about the Internet, ours was acting up just today. The build failed.
celestial_nav had warning C4996 unsafe call, Function call with parameters that may be unsafe, check them
Also Error C3861 "trunc'. several times.
__________________
rgleason is offline   Reply With Quote
Old 25-02-2013, 21:48   #23
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: BVI
Boat: bristol 27
Posts: 2,640
Re: celestial navigation plugin redux

Quote:
Originally Posted by rgleason View Post
Sorry about the Internet, ours was acting up just today. The build failed.
celestial_nav had warning C4996 unsafe call, Function call with parameters that may be unsafe, check them
Also Error C3861 "trunc'. several times.
Nohal fixed trunc on windows and I pushed his change today so that should not be a problem anymore.

As for other errors, I have no idea what C4996 is because that is a visual studio specific error number. Maybe you could give me the filename and line number which caused this error.
__________________
boat_alexandra is offline   Reply With Quote
Old 26-02-2013, 07:43   #24
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,007
Re: celestial navigation plugin redux

Deleted directory celestial_navigation_pi from this location
C:\Data-Dart\...\opencpn-git\plugins

Then using Run "Cmd" set directory using cd to C:\Data-Dart\...\opencpn-git\plugins and the executed
git clone https://github.com/seandepagnier/celestial_navigation_pi.git
as Pavel suggested, from the plugins directory. The git clone command
"Received objects 100% (101/101)
Resolved objects 100% (49/49) done"

cd ..
cd build
cmake .. says staging to build celestial_navigation_pi ...then Config done, generate done.
cmake --build . generating a lot of celest..nav objects. says 1 warning and 0 Errors!!!

Warning was compile target >> pplugins\celestial_navigation_pi\src\astrolabe\uti l.cpp (531): warning C4996: "ste::basic_string_<Elem,_traits, _Ax>::copy' Function call with parameters that may be unsafe -- This call relies on the caller to check that the passed values are correct. To disable....use D_SCL etc. See how to use Visual C++ "Checked Iterators" [C:\..opencpn-git\build\plugins\celestial_navigation_pi\celestia l_navigation_pi.vcxproj]

I will test it later.

Thanks for fixing and updating.
__________________
rgleason is offline   Reply With Quote
Old 26-02-2013, 10:18   #25
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,007
Re: celestial navigation plugin redux

After compiling above, the celestial_navigation_pi.dll (with current date & time when compiled) was copied from
...\opencpn-git\build\plugins\celestial_navigation_pi\Debug
to ...\opencpn-git\build\plugins

Then copied "data" directory
..\opencpn-git\plugins\celestial_navigation_pi\data
...\opencpn-git\build\plugins\celestial_navigation\data
The "data" directory contains 3 files necessary for the plugin.

Without the "data" directory and its 3 files there is a clear error message which pops up when the plugin is enabled.

MS Visual Studio C++2010 Express is started, Opencpn is loaded and Opencpn is run in Debug Mode and eventually the Opencpn program appears. Enable the Celestial Navigation plugin under Settings > Plugins.

Hit the plugin icon, the window to record sightings pops up.
Select "Information" and the html file under "data" is accessed and can be read.
Select "New Sight" and "Sight Properties" Window appears with many choices.
Tabs - Sight, Time, Config, Parameters, Calculations

Sight - Type (altitude, azimuth) Celestial Body (long list) also Find, Limb (lower, center, upper) Measurement (Degrees, Minutes, Degres Certainty) -OK Cancel
Time - Nice calendar selection and adjustment
Config - tranparency, color, magnetic or not, shift sights.
Parameters - Eye height, temperature, pressure
Calculations - Almanac data for the Body, formulas, parallex etc.
OK, Cancel

I try to enter altitude after using "Find" to get the expected altitude for the Sun, and nothing seems to happen. Maybe I should make this a release dll and run it that way?

This seems like it might be very useful. I would like to learn more about celestial and should learn to take sightings.

Right now the plugin seems stuck and I"ve stopped debugging but the program does not close. This needs more testing I think.
__________________
rgleason is offline   Reply With Quote
Old 26-02-2013, 10:46   #26
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,007
Re: celestial navigation plugin redux

Under first Menu Popup "Celestial Navigation
Choices are New sight, Warp to Sight, Edit Sight, Delete Sight, Delete all, Information.

Still having trouble exiting the plugin. Can't get out of it. Finally have to use task manager to shut it down. Have had to do this twice.

I seem to be incapable of entering a sight right now.
__________________
rgleason is offline   Reply With Quote
Old 26-02-2013, 14:57   #27
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: BVI
Boat: bristol 27
Posts: 2,640
Re: celestial navigation plugin redux

What happens if you click the X on the window with all the buttons (new sight edit sight etc..) ?
__________________
boat_alexandra is offline   Reply With Quote
Old 26-02-2013, 16:06   #28
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,007
Re: celestial navigation plugin redux

It does not seem to respond when I hit the X. Then when I hit it again it beeps.
and it beeps each time afterward that I hit the X.
__________________
rgleason is offline   Reply With Quote
Old 02-03-2013, 10:53   #29
Registered User
 
hwecken's Avatar

Join Date: Feb 2012
Location: Germany
Boat: HR382
Posts: 110
Re: celestial navigation plugin redux

Quote:
Originally Posted by nohal View Post
Windows testers...
I fixed the single minor problem in the code and here's a DLL built for you, just remove the .doc and copy to your plugin directory. Should work with any release from 3.0 up.
Hello Pavel,
works great under windows vista with OCPN 3.2.
Thats a tool i have searched for a long time, and now as a plugin in OCPN --> thats great
Thanks
__________________
hwecken is offline   Reply With Quote
Old 02-03-2013, 13:59   #30
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,007
Re: celestial navigation plugin redux

Hwecken, how can you have such and easy time! What OS?
__________________

__________________
rgleason is offline   Reply With Quote
Reply

Tags
celestial navigation, navigation

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 822 14-02-2017 19:01
Google Earth Plugin r.fairman OpenCPN 417 15-02-2015 11:15
GRIB Weather Mark Ward OpenCPN 26 12-02-2012 21:33
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 04:31


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 15:58.


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.