Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 28-03-2021, 05:02   #2686
Registered User

Join Date: Jun 2014
Posts: 18
Re: Beta Test / Technical

Hi Dave,


I just read some 5.2.0 code.


In Track.cpp line 762 there is a little routine:


762 static double heading_diff(double x)
763 {
764 if(x > 180)
765 return 360 - x;
766 if(x < -180)
767 return -360 + x;
768 return x;
769 }


I think there is a typo, and line 767 should rather be:


return 360+x;


Juergen
juehoe is offline   Reply With Quote
Old 28-03-2021, 17:15   #2687
Registered User

Join Date: Jun 2010
Location: St. Petersburg, Florida
Boat: Gemini 3200
Posts: 881
Re: Beta Test / Technical

I don't think so. The idea is to keep the range between 0 and 360, isn't it?
fgd3 is online now   Reply With Quote
Old 30-03-2021, 01:58   #2688
Registered User

Join Date: Jun 2014
Posts: 18
Re: Beta Test / Technical

Quote:
Originally Posted by fgd3 View Post
I don't think so. The idea is to keep the range between 0 and 360, isn't it?

The goal is obviously to keep the range between -180 and 180.
Add -360 and -185. What do you get?
juehoe is offline   Reply With Quote
Old 30-03-2021, 18:35   #2689
Registered User

Join Date: Jun 2010
Location: St. Petersburg, Florida
Boat: Gemini 3200
Posts: 881
Re: Beta Test / Technical

Quote:
Originally Posted by juehoe View Post
The goal is obviously to keep the range between -180 and 180.
Add -360 and -185. What do you get?

-545.


You're right. If x is less than -180 you want to add it to (positive) 360.
fgd3 is online now   Reply With Quote
Old 28-04-2021, 04:32   #2690
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 15,085
Re: Beta Test / Technical

In Ubuntu 18.04 OpenCPN v5.5 froze up on me and I can't close it. What do I do to force it to close? So I can restart it?


xkill from terminal window, then select application with mouse
rgleason is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Beta Marine Diesel michaelmrc Engines and Propulsion Systems 48 23-03-2016 13:44
Need some technical advice....antennas. Just a Tinch Marine Electronics 15 01-12-2007 16:57
Blue Sea Systems Technical Brief GordMay Electrical: Batteries, Generators & Solar 0 16-03-2007 04:16
technical difficulties witchcraft The Sailor's Confessional 1 30-05-2005 14:09
Dow Corning Technical Manual GordMay The Library 0 12-04-2005 16:25

Advertise Here


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


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2021, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.