|
|
23-02-2013, 22:38
|
#1
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
|
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?
|
|
|
24-02-2013, 04:16
|
#2
|
Registered User
Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
|
Re: celestial navigation plugin redux
Quote:
Originally Posted by boat_alexandra
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
|
|
|
24-02-2013, 04:37
|
#3
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
|
Re: celestial navigation plugin redux
Quote:
Originally Posted by cagney
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.
|
|
|
24-02-2013, 05:30
|
#4
|
Registered User
Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
|
Re: celestial navigation plugin redux
This is how I found out!
|
|
|
24-02-2013, 08:10
|
#5
|
Registered User
Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
|
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
|
|
|
24-02-2013, 08:54
|
#6
|
cruiser
Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
|
Re: celestial navigation plugin redux
Quote:
Originally Posted by nohal
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.
|
|
|
24-02-2013, 14:34
|
#8
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,625
|
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.
|
|
|
24-02-2013, 14:39
|
#9
|
Registered User
Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
|
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
|
|
|
24-02-2013, 15:00
|
#10
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
|
Re: celestial navigation plugin redux
Quote:
Originally Posted by nohal
hmmm...
The problem appears on in Sight.cpp:161
The question is why just on Windoze...
|
what are the build errors? What did you do to make it compile?
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
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.
|
|
|
24-02-2013, 15:07
|
#11
|
Registered User
Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
|
Re: celestial navigation plugin redux
Quote:
Originally Posted by boat_alexandra
what are the build errors? What did you do to make it compile?
|
Just trunc is missing on Windows - pull request on github...
Pavel
|
|
|
24-02-2013, 15:14
|
#12
|
cruiser
Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
|
Re: celestial navigation plugin redux
Quote:
Originally Posted by nohal
|
That works on win 7, very cool, like it. Well done
|
|
|
24-02-2013, 15:19
|
#13
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,625
|
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!!!
|
|
|
24-02-2013, 15:27
|
#14
|
Registered User
Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
|
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 .
|
|
|
24-02-2013, 15:33
|
#15
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
|
Re: celestial navigation plugin redux
There aren't any preferences currently
|
|
|
|
|
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 |
|
|
|
|
|