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 14-10-2017, 20:08   #601
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

Just saw Seans note. I guess the plugin is in good hands. Stelian and Sean thankyou.
rgleason is offline   Reply With Quote
Old 15-10-2017, 08:38   #602
Registered User

Join Date: Feb 2011
Posts: 1,116
Re: Celestial Navigation Plugin Redux

One of the only thing that I am not finding to work correctly is moving the position line to a subsequent sight (or sights) to the next DR later in the day to make a fix. Say sun sight at 09h00 and noon sun sight. Anyone can explain what I am missing in that system.
Bye
P_Dub is offline   Reply With Quote
Old 15-10-2017, 10:34   #603
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

Just cloned Stelian42/cel_nav and got some compiler errors c2027

https://stackoverflow.com/questions/...-declare-class

https://stackoverflow.com/questions/...nd-error-c2227

https://msdn.microsoft.com/en-us/library/6c2dk0ah.aspx

Are there any binary's needed? Don't think so. See attached please.

Will see if you manage to compile it under "Releases"
Attached Files
File Type: doc Cel-Nav-Error.txt.doc (5.1 KB, 30 views)
rgleason is offline   Reply With Quote
Old 15-10-2017, 11:44   #604
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

Here are some of the lines and error codes... sounds like it is a format error. Windows is picky unfortunately.

...\src\FindBodyDialog.cpp(45): error C2027: use of undefined type 'wxFileConfig'
double lat, lon;
celestial_navigation_pi_BoatPos(lat, lon);
wxFileConfig *pConf = GetOCPNConfigObject();
pConf->SetPath( _T("/PlugIns/CelestialNavigation/FindBody") ); <---line 45

...\src\FindBodyDialog.cpp(45): error C2227: left of '->SetPath' must point to class/struct/union/generic type
double lat, lon;
celestial_navigation_pi_BoatPos(lat, lon);
wxFileConfig *pConf = GetOCPNConfigObject();
pConf->SetPath( _T("/PlugIns/CelestialNavigation/FindBody") ); <---line 45

...\src\FindBodyDialog.cpp(48): error C2027: use of undefined type 'wxFileConfig'
bool boat_position;
pConf->Read( _T("BoatPosition"), &boat_position, true ); <--- line 48
m_cbBoatPosition->SetValue(boat_position);

...\src\FindBodyDialog.cpp(48): err or C2227: left of '->Read' must point to class/struct/union/generic type
bool boat_position;
pConf->Read( _T("BoatPosition"), &boat_position, true ); <--- line 48
m_cbBoatPosition->SetValue(boat_position);

...src\FindBodyDialog.cpp(52): error C2027: use of undefined type 'wxFileConfig'

..\src\FindBodyDialog.cpp(52): error C2227: left of '->Read' must point to class/struct/union/generic type

Also Lines, 56, 57, 70, 71, 72, 75 and 77. Similar.
====

C2227 Errors

https://social.msdn.microsoft.com/Fo...orum=vcgeneral

https://stackoverflow.com/questions/...te-class-error


====
p_dub are you Linux OS?
rgleason is offline   Reply With Quote
Old 15-10-2017, 11:56   #605
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

Sean's version gets the same errors!
rgleason is offline   Reply With Quote
Old 15-10-2017, 12:02   #606
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: Celestial Navigation Plugin Redux

Quote:
Originally Posted by rgleason View Post
Sean's version gets the same errors!
Yeah, same here. Builds fine under Linux but not under Windows. It comes from Sean's changes.
stelian is offline   Reply With Quote
Old 15-10-2017, 12:09   #607
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,422
Re: Celestial Navigation Plugin Redux

Quote:
Originally Posted by P_Dub View Post
One of the only thing that I am not finding to work correctly is moving the position line to a subsequent sight (or sights) to the next DR later in the day to make a fix. Say sun sight at 09h00 and noon sun sight. Anyone can explain what I am missing in that system.
Bye
You are supposed to first take a sight at 9 am.

At 12 am, take another sight, and edit the 9am sight adding a bearing and offset. Do not change the time of the 9 am sight, it will always be at 9 am.
seandepagnier is offline   Reply With Quote
Old 15-10-2017, 12:15   #608
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: Celestial Navigation Plugin Redux

Quote:
Originally Posted by stelian View Post
Yeah, same here. Builds fine under Linux but not under Windows. It comes from Sean's changes.
Sean fixed the build error, I confirm it builds ok on Windows now.

I've merged Sean's master into my repo, ready to be pulled !
stelian is offline   Reply With Quote
Old 15-10-2017, 12:18   #609
Registered User

Join Date: Feb 2011
Posts: 1,116
Re: Celestial Navigation Plugin Redux

====
p_dub are you Linux OS?[/QUOTE]

No, I am windows 10.
I don't have anymore Visual Studio, so can not compile.
If you can send me a new one compile.
Like I said before, we need to put in the interface a DR position in order to be able to discriminate between the 2 positions of circles crossing each other ( in the case of 2 sights) and also, when 2 sights are hours apart, like morning sun and noon sun. that is the normal procedure at sea. I know it may not be easy but if someone could do it this would nice to have for you fellows.
In the means times I keep checking.
Regards.
P_Dub
P_Dub is offline   Reply With Quote
Old 15-10-2017, 16:23   #610
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

Thanks P_Dub, Will try to remember you are windows.
Stelian I hope to compile cel_nav next. Have been working on weatherfax and learning how to use git better today. Cel_Nav next

Sean showed me that we have that feature and explained that When you do a FIX you need to know very roughly which X is the right one. This is done by putting just integral numbers for LAT LONG in bottom PART of the FIX Menu. I think we need some title that helps with this. Think about it.
Only integers are needed, very rough for my example 42 -71 would work.

Quote:
Like I said before, we need to put in the interface a DR position in order to be able to discriminate between the 2 positions of circles crossing each other ( in the case of 2 sights) and also, when 2 sights are hours apart, like morning sun and noon sun. that is the normal procedure at sea. I know it may not be easy but if someone could do it this would nice to have for you fellows. In the means times I keep checking.
rgleason is offline   Reply With Quote
Old 15-10-2017, 17:15   #611
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

P_Dub, you'll find a compiled file here.
https://github.com/rgleason/celestia...es/tag/v2.2003

Its much better. Make sure UT is correct before using FIND.
I still have 53nm off from Boston 42.35 -71.1, at the same time 1800 Oct 10, 2017

...but the sights are crossing much much better.

See attached files and screenshot.

Thanks Sean and Stelian! It is much better and easier to use. Boat Pos is working in FIND and I really appreciate the copy measurement feature in FIND!


Looking much better. P_Dub give it an exactness test please.
Attached Thumbnails
Click image for larger version

Name:	Cel-Nav-10-15-Test.jpg
Views:	79
Size:	54.3 KB
ID:	157785  
Attached Files
File Type: doc Sights.xml.rick4.doc (1.9 KB, 24 views)
File Type: doc CN-bos-boat-pos.txt.doc (570 Bytes, 28 views)
rgleason is offline   Reply With Quote
Old 15-10-2017, 17:54   #612
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

The crossings of the sights seem closer, but they're still about 57nm away from the VDR file I made for Boat Position of 42.35 -71.1

I think the Clock Offset is working great. I used it to find out that the sights are -318 seconds off. I wonder why they would be off that much? -57 nm = -318 seconds I guess, but where would that come from?

The FIX just needs approximate Full degrees Long & Lat to find the correct crossing (there are just two for two circles for example) Sean says the Sphere and two cones are just different ways of calculating the fix. You should not see a big difference in the fix or something is wrong.
What should the description say here?

Rough Lat ___ Long ___ use Full degrees?
Attached Thumbnails
Click image for larger version

Name:	Clock Correction=0.jpg
Views:	76
Size:	57.6 KB
ID:	157786   Click image for larger version

Name:	Clock-Offset=minus318.jpg
Views:	72
Size:	66.1 KB
ID:	157787  

Click image for larger version

Name:	FIX.jpg
Views:	63
Size:	92.1 KB
ID:	157788  
rgleason is offline   Reply With Quote
Old 15-10-2017, 18:29   #613
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

I found two time errors that did not seem to help too much, then added more sights.
These sights seem to be east more, but the FiX is further off.

Sights and screenshot are attached.
Attached Thumbnails
Click image for larger version

Name:	2 Time Corrections and more Sights.jpg
Views:	69
Size:	89.6 KB
ID:	157791  
Attached Files
File Type: doc Sights.xml.rick5.doc (3.6 KB, 30 views)
rgleason is offline   Reply With Quote
Old 15-10-2017, 18:36   #614
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Regarding accuracy of FIND

Sean's responses quoted:

The crossings of the sights seem closer, but they're still 54nm away from the VDR file I made for 42.35 -71.1
Quote:
Yes, well the find body is only approximate. It doesn't perform the atmospheric corrections and height of eye and other calculations, this is why they don't align perfectly. When calculations are performed the other way around for real sights, all the corrections are performed.
Quote:
It might be nice to improve the find body to perform all the corrections in reverse, but it does explain why other people have verified the plugin does work for real sights.
I think your Clock Offset is working great. I used it to find out that the sights are -318 seconds off. I wonder why they would be off that much? -58 nm = -318 seconds I guess, but where would that come from?
Quote:
Again, this is not the issue. I still didn't make the clock offset update in realtime.
rgleason is offline   Reply With Quote
Old 16-10-2017, 00:40   #615
Registered User

Join Date: Sep 2010
Posts: 153
Re: Celestial Navigation Plugin Redux

Hi,

I can confirm that "Beta celestial_navigation_pi-2.2.003-ov4.-win32" version is accurate.
I put my 5 physical sights from summer voyage Canaries - Cabo Verde and accuracy is less then 2 NM, only one sight have near 3 NM. So plugin works perfect and those errors are like human measure error.

Great work!

Thanks again,

Kubek
Attached Thumbnails
Click image for larger version

Name:	Astro_Capture_4.jpg
Views:	80
Size:	286.8 KB
ID:	157805  
kubek is offline   Reply With Quote
Reply

Tags
celestial navigation, navigation


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 1128 15-05-2022 11:25
Google Earth Plugin r.fairman OpenCPN 445 29-04-2020 10:11
GRIB Weather Mark Ward OpenCPN 26 12-02-2012 21:33
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 04:31

Advertise Here


All times are GMT -7. The time now is 12:52.


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.