Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 23-02-2013, 22:38   #1
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: North Carolina
Boat: bristol 27
Posts: 2,720
Celestial Navigation Plugin Redux

Some of you may remember the initial celestial navigation plugin from a few years ago. I was getting bored of dealing with the weather fax and put it on hold (although I'm back on it again) and I dug out the celestial navigation stuff. Rewrote the UI bit to make it easier to maintain, fixed some bugs, and added some features. It is by no means complete, but I am looking for users to test the plugin and verify its accuracy so I can correct any major problems first.

So far the readings are very close to two other programs I have, but sometimes stuff disagrees slightly and could result in as much as 50 mile error. I would like if possible as much cross-checking as can be done to determine the root causes if any of issues.

The source code repository is:
github.com/seandepagnier/celestial_navigation_pi

Please clone build and test. It probably doesn't build on windows yet but likely is relatively minor stuff, so let me know what breaks.

Btw.. I do not own a decent sextant (only a $5 plastic one) so if someone would like to help me rectify this situation it would be much appreciated.

Future plans
1. implement support for lunar sights, or sighting the angle between celestial bodies to re-calibrate the system clock (if your clock is a bit skewed or cannot trust system time)
2. enhanced support to explain how to work out sights manually
3. Save and load sights from disk
4. moon phase support
5. corrections via jupiter's moons positions anyone?
Attached Thumbnails
Click image for larger version

Name:	celestialscreenshot.png
Views:	442
Size:	96.4 KB
ID:	55611  
__________________

__________________
boat_alexandra is offline   Reply With Quote
Old 24-02-2013, 04:16   #2
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,204
Re: celestial navigation plugin redux

Quote:
Originally Posted by boat_alexandra View Post
Some of you may remember the initial celestial navigation plugin from a few years ago. I was getting bored of dealing with the weather fax and put it on hold (although I'm back on it again) and I dug out the celestial navigation stuff. Rewrote the UI bit to make it easier to maintain, fixed some bugs, and added some features. It is by no means complete, but I am looking for users to test the plugin and verify its accuracy so I can correct any major problems first.

So far the readings are very close to two other programs I have, but sometimes stuff disagrees slightly and could result in as much as 50 mile error. I would like if possible as much cross-checking as can be done to determine the root causes if any of issues.

The source code repository is:
github.com/seandepagnier/celestial_navigation_pi

Please clone build and test. It probably doesn't build on windows yet but likely is relatively minor stuff, so let me know what breaks.

Btw.. I do not own a decent sextant (only a $5 plastic one) so if someone would like to help me rectify this situation it would be much appreciated.

Future plans
1. implement support for lunar sights, or sighting the angle between celestial bodies to re-calibrate the system clock (if your clock is a bit skewed or cannot trust system time)
2. enhanced support to explain how to work out sights manually
3. Save and load sights from disk
4. moon phase support
5. corrections via jupiter's moons positions anyone?


Compiled without issues 64 bits Ubuntu 12.10
I'll do some testing.
There is no clear indication what time you are using, so i supposed GMT, but after horrible results found that the default seems to be computer time, CET in my case. An option to either use GMT or computer time would be good. A clear indication in the time tab of what time is used, would also do.

Thomas
__________________

__________________
cagney is offline   Reply With Quote
Old 24-02-2013, 04:37   #3
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: North Carolina
Boat: bristol 27
Posts: 2,720
Re: celestial navigation plugin redux

Quote:
Originally Posted by cagney View Post


Compiled without issues 64 bits Ubuntu 12.10
I'll do some testing.
There is no clear indication what time you are using, so i supposed GMT, but after horrible results found that the default seems to be computer time, CET in my case. An option to either use GMT or computer time would be good. A clear indication in the time tab of what time is used, would also do.

Thomas
The time should be set automatically to current GMT whatever that is. Is it getting set to local time and you have to manually set it to GMT? This sounds like an issue with wxDateTime class if this is happening.
__________________
boat_alexandra is offline   Reply With Quote
Old 24-02-2013, 05:30   #4
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,204
Re: celestial navigation plugin redux

Click image for larger version

Name:	celestial.png
Views:	339
Size:	25.0 KB
ID:	55631

This is how I found out!
__________________
cagney is offline   Reply With Quote
Old 24-02-2013, 08:10   #5
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: celestial navigation plugin redux

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.

Pavel
Attached Files
File Type: doc celestial_navigation_pi.dll.doc (304.5 KB, 136 views)
__________________
nohal is offline   Reply With Quote
Old 24-02-2013, 08:54   #6
Registered User

Join Date: Nov 2007
Location: Probably and anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 3,229
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.

Pavel
Sorry but doesn't seem to work in win 7 home premium 64bit, Opencpn Version 3.1.1328 Build 2013-01-28. Installs OK, can enable but preferences grayed out, dialog box opens but pressing "new sight" gets a "busy" mouse then doesn't do anything else. Will try compiling on a linux machine in a minute to see what should happen.

Ta V much, looks like an interesting plug in.
__________________
conachair is online now   Reply With Quote
Old 24-02-2013, 11:08   #7
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: celestial navigation plugin redux

hmmm...
The problem appears on
Code:
Sun sun;
in Sight.cpp:161
The question is why just on Windoze...

EDIT:
OK, I should probably at least read the code before posting the dll next time
You have to create a subdirectory celestial_navigation\data in your plugin folder and place the following files there:
https://raw.github.com/seandepagnier...%20Basics.html
https://raw.github.com/seandepagnier...ata/IGRF11.COF
https://raw.github.com/seandepagnier...ta/vsop87d.txt

Sorry for the confusion...
Sean, maybe it could die in a little more user-friendly way
__________________
nohal is offline   Reply With Quote
Old 24-02-2013, 14:34   #8
Registered User
 
rgleason's Avatar

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

Well, I guess I am missing something here. Using Win7
1. Start > Run > CMD Command window up
2. Cd to opencpn-git directory.
3. Git clone github.com/seandepagnier/celestial_navigation_pi
4. Response is fatal: repository github.com/seanpadnier/celestial_navigation_pi does not exist.

Then I tried downloading Pavel's dll and then the three subsequent files, placing them under the plugins\celestical_navigation\data directory.

The plugin does not seem to appear in Settings Plugins using O 3.1.1417 or O 3.1.12

Sorry.
__________________
rgleason is offline   Reply With Quote
Old 24-02-2013, 14:39   #9
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: celestial navigation plugin redux

rgleason...
Could we see the part of your logfile where plugins are loaded?
The correct and complete command to clone the code is
Code:
git clone https://github.com/seandepagnier/celestial_navigation_pi.git
What sean posted was referring to https://github.com/seandepagnier/cel..._navigation_pi - on top of this page you can find the git URLs

Pave
__________________
nohal is offline   Reply With Quote
Old 24-02-2013, 15:00   #10
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: North Carolina
Boat: bristol 27
Posts: 2,720
Re: celestial navigation plugin redux

Quote:
Originally Posted by nohal View Post
hmmm...
The problem appears on
Code:
Sun sun;
in Sight.cpp:161
The question is why just on Windoze...
what are the build errors? What did you do to make it compile?
Quote:
EDIT:
OK, I should probably at least read the code before posting the dll next time
You have to create a subdirectory celestial_navigation\data in your plugin folder and place the following files there:
https://raw.github.com/seandepagnier...%20Basics.html
https://raw.github.com/seandepagnier...ata/IGRF11.COF
https://raw.github.com/seandepagnier...ta/vsop87d.txt

Sorry for the confusion...
Sean, maybe it could die in a little more user-friendly way
Yes, in fact I need to change the html file to be somewhere else, not be required at all, and also give a real error messages signifying when various files cannot be loaded.
Quote:
Originally Posted by rgleason View Post
Well, I guess I am missing something here. Using Win7
1. Start > Run > CMD Command window up
2. Cd to opencpn-git directory.
3. Git clone github.com/seandepagnier/celestial_navigation_pi
4. Response is fatal: repository github.com/seanpadnier/celestial_navigation_pi does not exist.
Quote:
I am not sure if you copied or typed it, but seanpadnier is not correct. Perhaps you can browse there on the github website, and go into celestial_navigation_pi and copy the clone url to avoid confusion.
Then I tried downloading Pavel's dll and then the three subsequent files, placing them under the plugins\celestical_navigation\data directory.

The plugin does not seem to appear in Settings Plugins using O 3.1.1417 or O 3.1.12

Sorry.
also note that celestial is needed not celestical. I will work on error reporting.
__________________
boat_alexandra is offline   Reply With Quote
Old 24-02-2013, 15:07   #11
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: celestial navigation plugin redux

Quote:
Originally Posted by boat_alexandra View Post
what are the build errors? What did you do to make it compile?
Just trunc is missing on Windows - pull request on github...

Pavel
__________________
nohal is offline   Reply With Quote
Old 24-02-2013, 15:14   #12
Registered User

Join Date: Nov 2007
Location: Probably and anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 3,229
Re: celestial navigation plugin redux

Quote:
Originally Posted by nohal View Post
OK, I should probably at least read the code before posting the dll next time
You have to create a subdirectory celestial_navigation\data in your plugin folder and place the following files there:
https://raw.github.com/seandepagnier...%20Basics.html
https://raw.github.com/seandepagnier...ata/IGRF11.COF
https://raw.github.com/seandepagnier...ta/vsop87d.txt

Sorry for the confusion...
Sean, maybe it could die in a little more user-friendly way
That works on win 7, very cool, like it. Well done
__________________
conachair is online now   Reply With Quote
Old 24-02-2013, 15:19   #13
Registered User
 
rgleason's Avatar

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

Pavel, Thanks.
That was pretty dumb, I'll learn.
git clone https://github.com/seandepagnier/cel...n_pi.gitWorked fine. unpacked 100% 82/82 Sorry about any mispellings, will check next time. -I copied and pasted, yes.

Logfile

Code:
7:39:08 AM: ChartSymbols loaded from C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\s57data\chartsymbols.xml
7:39:08 AM: Using s57data in C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\s57data
7:39:08 AM: Setting Viewpoint Lat/Lon 56.2116, 14.6796
7:39:08 AM: Setting Ownship Lat/Lon 52.4655, 5.0382
7:39:08 AM: Opening NMEA Datastream Serial:COM8
7:39:08 AM: PlugInManager searching for PlugIns in location C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins
7:39:08 AM: PlugInManager: Loading PlugIn: C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/bsb4_win32_pi15_v12_pi.dll
7:39:08 AM:   C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/bsb4_win32_pi15_v12_pi.dll Version detected: 105
7:39:08 AM: PlugInManager: Loading PlugIn: C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/CALCULATOR_win32_pi18_v11_pi.dll
7:39:08 AM:   C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/CALCULATOR_win32_pi18_v11_pi.dll Version detected: 108
7:39:08 AM: PlugInManager: Loading PlugIn: C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/dashboard_pi.dll
7:39:08 AM:   C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/dashboard_pi.dll Version detected: 106
7:39:08 AM: PlugInManager: Loading PlugIn: C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/gecomapi_win32_pi16_v09_pi.dll
7:39:08 AM:   C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/gecomapi_win32_pi16_v09_pi.dll Version detected: 106
7:39:08 AM: PlugInManager: Loading PlugIn: C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/grib_enhanced_pi.dll
7:39:08 AM:   C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/grib_enhanced_pi.dll Version detected: 107
7:39:08 AM: PlugInManager: Loading PlugIn: C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/nvc_win32_pi15_v13_pi.dll
7:39:08 AM:   C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/nvc_win32_pi15_v13_pi.dll Version detected: 105
7:39:08 AM: PlugInManager: Loading PlugIn: C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/ocpndebugger_win32_pi18_v01_pi.dll
7:39:08 AM:   C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/ocpndebugger_win32_pi18_v01_pi.dll Version detected: 108
7:39:08 AM: PlugInManager: Loading PlugIn: C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/ROUTE_win32_pi18_v10_pi.dll
7:39:08 AM:   C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/ROUTE_win32_pi18_v10_pi.dll Version detected: 108
7:39:08 AM: PlugInManager: Loading PlugIn: C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/SAR_win32_pi18_v07_pi.dll
7:39:08 AM:   C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/SAR_win32_pi18_v07_pi.dll Version detected: 108
7:39:08 AM: PlugInManager: Loading PlugIn: C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/vdr_win32_pi16_v03_pi.dll
7:39:08 AM:   C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/vdr_win32_pi16_v03_pi.dll Version detected: 106
7:39:08 AM: PlugInManager: Loading PlugIn: C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/weatherfax_pi.dll
7:39:08 AM:   C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/weatherfax_pi.dll Version detected: 108
7:39:08 AM: PlugInManager: Loading PlugIn: C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/wmm_pi.dll
7:39:08 AM:   C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/wmm_pi.dll Version detected: 108
7:39:08 AM: Warning: WMM model data file C:\Program Files (x86)\OpenCPN/plugins/WMM.COF can't be loaded, using the bundled data.
7:39:08 AM: OpenGL-> Renderer String: Intel(R) HD Graphics Family
I see, its using "C:\Data-Dart\Up-Soft\Navigation\OpenCPN 3.1.1405\plugins/" rather than the plugins directory under Opencpn 3.1.1417

I think i installed 1417 over 1405 and forgot that. Sorry. I'll fix it.
I should get into this detail more in the future! It is all in my control!!!
__________________
rgleason is offline   Reply With Quote
Old 24-02-2013, 15:27   #14
Registered User
 
HappySeagull's Avatar

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

fun! on xp! thanks!
Definitely needs me to input Greenwich time and preference button is inoperable I am foolin' around with inputs from Stellarium .
__________________
HappySeagull is offline   Reply With Quote
Old 24-02-2013, 15:33   #15
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: North Carolina
Boat: bristol 27
Posts: 2,720
Re: celestial navigation plugin redux

There aren't any preferences currently
__________________

__________________
boat_alexandra 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 823 07-06-2017 09:32
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 01: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.