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 19-01-2015, 19:45   #151
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN Version 4.0 Released

RD...
Yes, VDR recording, please...
Pavel
nohal is offline   Reply With Quote
Old 19-01-2015, 20:02   #152
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN Version 4.0 Released

Quote:
Originally Posted by bdbcat View Post
Wrong...

I think I see what's up.

To confirm, will you post the output of your cmake step, like:

Code:
$cmake ..
I think your system has OpenGLES libraries install, which confuses the build.

I suspect you will see a line like:

Code:
"Found OpenGLESv2"
or
"Found OpenGLESv1"
in the cmake output.

This is not expected for a standard build. If found, thats a bug in the cmake script.

If this is the case, you may modify the CMakeLists.txt, line 263,as follows:

Code:
#Search for opengles, short of running a program to test the speed
# of acceleration, I simply use gles on arm systems
IF (ARCH MATCHES "arm*")
find_path(OPENGLESv2_INCLUDE_DIR GLES2/gl2.h )
IF (OPENGLESv2_INCLUDE_DIR)
  MESSAGE (STATUS "Found OpenGLESv2")
#  ADD_DEFINITIONS(-DocpnUSE_GLES)
ELSE()
find_path(OPENGLESv1_INCLUDE_DIR GLES/gl.h )
IF (OPENGLESv1_INCLUDE_DIR)
  MESSAGE (STATUS "Found OpenGLESv1")
#  ADD_DEFINITIONS(-DocpnUSE_GLES)
ENDIF()
ENDIF()
ENDIF()
Note the two "#" characters added before the ADD_DEFINITIONS lines.

Then, $cmake .. and $make as usual.

Maybe?

Thanks
Dave
Should This be done for all ARM builds ?

Thanks,
JM.
NahanniV is offline   Reply With Quote
Old 19-01-2015, 20:03   #153
Registered User

Join Date: Jan 2011
Posts: 670
Re: OpenCPN Version 4.0 Released

Dave/Pavel - One other thing. I just added True HDG to the dashboard while the VDR script is playing. So now I can look at Mag HDG and True HDG side-by-side. There is something chaotic going on there involving the 12° magnetic variation. True HDG should be 12° lower than magnetic at all times, but it switches back and forth chaotically. True actually shows up 12° HIGHER most of the time, but after a couple seconds True will suddenly drop by 24° (to the value that it should be). But this only lasts for a split second, then True goes back to being 12° higher than Magnetic.

This seems to be very closely correlated to the changing heading vector on the chart (with a little time lag between the two). It seems sensible that in order to display this vector on screen O needs to calculate the true heading first, and the chaotic value that I'm seeing in the dashboard is causing the fluctuation when the vector overlays the chart.

Knowing your history, I suspect you'll find the problem in the code fairly quickly. But enjoy your vacation first - there's no rush for this, as my boat is laid up until the water melts.

FYI, you may recall that I had found a similar issue in magnetic correction for autopilot bearing-to-waypoint sentences about six months ago. Maybe this is related to that.
Attached Files
File Type: pdf NMEA Log 2015.01.19b.txt.pdf (105.3 KB, 52 views)
RhythmDoctor is offline   Reply With Quote
Old 19-01-2015, 20:39   #154
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,500
Re: OpenCPN Version 4.0 Released

RD...

We could look at a VDR trace first. I suspect some trouble with variation determination and/or application.

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 19-01-2015, 20:49   #155
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,500
Re: OpenCPN Version 4.0 Released

NahanniV...

The CMake patch should be applied if you see the lines about GLES in the cmake output.

"Found OpenGLESv2" or "Found OpenGLESv1"

If you don't see those lines, then all is well.

Good Luck
Dave
bdbcat is offline   Reply With Quote
Old 20-01-2015, 05:20   #156
Registered User

Join Date: Jan 2011
Posts: 670
Re: OpenCPN Version 4.0 Released

Quote:
Originally Posted by bdbcat View Post
RD...

We could look at a VDR trace first. I suspect some trouble with variation determination and/or application.

Thanks
Dave
The VDR trace was added to post #153.

In case you are curious, the prior message thread on magnetic conversion problems can be found here:

http://www.cruisersforum.com/forums/...ot-127944.html
RhythmDoctor is offline   Reply With Quote
Old 20-01-2015, 05:36   #157
Registered User

Join Date: Jul 2010
Location: East Coast US, Caribbean
Boat: Moody 425 sloop
Posts: 128
Re: OpenCPN Version 4.0 Released

Help! We upgraded to 4.0
Previously, Dave was a lifesaver to help us get the correct own ship and radar overlay orientation on the previous beta version by ignoring the proper NMEA sentences. We had the same configuration for 4.0, but can't get the boat pointing in the right direction, or the radar overlay to be correct. We try to turn different sentences on and off, and lose depth, true heading, wind data, and SOG with different selections. What are we doing wrong?
We've been using OCPN throughout our Caribbean cruise, in Tobago Cays now, and this upgrade is driving us nuts! Help!
Helmsmatt is offline   Reply With Quote
Old 20-01-2015, 06:01   #158
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN Version 4.0 Released

Matt...
We need to see your configuration.
And a screenshot of the NMEA debug window
And a recording of the stream with the VDR plugin would certainly be nice if your problem won't be obvious.
In the NMEA debug window look for HDG sentences. Are they green?
Without precise information, it is impossible to help you further.

Pavel
nohal is offline   Reply With Quote
Old 20-01-2015, 06:08   #159
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,500
Re: OpenCPN Version 4.0 Released

RD...

This is a variation problem from your autopilot heading sensor message.

From the VDR trace:

Code:
$GPHDG,231.50,,,12.00,E*03

$GPRMC,020716,A,3951.7176,N,07518.4128,W,000.0,000.0,200115,012.1,W*7C
The variation at Philly is -12, or 12W. The HDG message says 12E. The RMC message is correct at 12.1W. This agrees with WMM_PI.


Code:
   /*
   ** HDG - Heading - Deviation & Variation
   **
   **        1   2   3 4   5 6
   **        |   |   | |   | |
   ** $--HDG,x.x,x.x,a,x.x,a*hh<CR><LF>
   **
   ** Field Number:
   **  1) Magnetic Sensor heading in degrees
   **  2) Magnetic Deviation, degrees
   **  3) Magnetic Deviation direction, E = Easterly, W = Westerly
   **  4) Magnetic Variation degrees
   **  5) Magnetic Variation direction, E = Easterly, W = Westerly
   **  6) Checksum
   */
Dunno what to do about this...
A custom version to accommodate bad code in the hdg sensor?

Dave
bdbcat is offline   Reply With Quote
Old 20-01-2015, 07:03   #160
Registered User

Join Date: Jul 2010
Location: East Coast US, Caribbean
Boat: Moody 425 sloop
Posts: 128
Re: OpenCPN Version 4.0 Released

Thanks for the quick reply, Pavel!
I don't get depth, wind info, or STW.
Removed all port connections and reestablished. no change. Also, radar overlay is not correct, or ownship direction.
Attached Files
File Type: pdf NMEA data stream.pdf (369.5 KB, 64 views)
Helmsmatt is offline   Reply With Quote
Old 20-01-2015, 07:25   #161
Registered User

Join Date: Jul 2010
Location: East Coast US, Caribbean
Boat: Moody 425 sloop
Posts: 128
Re: OpenCPN Version 4.0 Released

Pavel,
There must be a bug.
I have AIS coming in on COM4, all NMEA data on COM3, and LAN for Radar.
If I add a second COM3 connection to OCPN, and allow all sentences, I get back wind data, depth,and STW. I closed the program, opened it and these data weren't working. I disabled that second COM 3 connection and reenabled it and the data came back.
VEXING!
We're not moving right now, so can't confirm ownship direction is correct. Radar pattern seems to correspond with the chart though.....
Helmsmatt is offline   Reply With Quote
Old 20-01-2015, 07:47   #162
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN Version 4.0 Released

Matt...
No bug, but there technically was one in the betas. As you can see from your screenshot, you had COM3 set to let just a couple of sentences come through and, although not visible from the screenshot, HDG was not one of them, which resulted in it being dropped (and displayed in maroon in the debug window) In the earlier betas the rule applied just to the core program, but the sentences were still sent to the plugins, in 4.0 they are really dropped completely upon reception - that was the reason for your trouble.

Pavel
nohal is offline   Reply With Quote
Old 20-01-2015, 07:54   #163
Registered User

Join Date: Jul 2010
Location: East Coast US, Caribbean
Boat: Moody 425 sloop
Posts: 128
Re: OpenCPN Version 4.0 Released

Great!
So what's the fix for me?
Helmsmatt is offline   Reply With Quote
Old 20-01-2015, 07:58   #164
Registered User

Join Date: Jul 2010
Location: East Coast US, Caribbean
Boat: Moody 425 sloop
Posts: 128
Re: OpenCPN Version 4.0 Released

HDG doesn't help with wind data, depth, and STW on the dashboard plugin.
Why does establishing another COM 3 allow the data, but it doesn't come back when I close and reopen the program? Also, I was only allowing HDT previously. Are you saying I need HDG also?
Thanks again for your reply and help
Helmsmatt is offline   Reply With Quote
Old 20-01-2015, 08:04   #165
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN Version 4.0 Released

Matt...
Set the filters to correctly let through all the messages you want on each port.

Pavel
nohal is offline   Reply With Quote
Reply

Tags
enc, lease, opencpn


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
OpenCPN Beta Version 3.1.814 Released bdbcat OpenCPN 185 14-09-2012 07:43
OpenCPN Beta Version 3.1.802 Released bdbcat OpenCPN 158 14-08-2012 10:07
OpenCPN Beta Version 3.1.714 Released bdbcat OpenCPN 91 01-08-2012 17:08

Advertise Here


All times are GMT -7. The time now is 10:46.


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.