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 02-11-2015, 05:24   #1636
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Beta Test / Technical

Quote:
Originally Posted by Hakan View Post
Gerhard..
Agree to your point.
What about creating a patch to default them No - track?
Håkan
Insert the code between "#ifdef __WXOSX__" and "#endif" in function GetTargetColumnData() in file OCPNListCtrl.cpp to get a list like the attached image:
Code:
wxString OCPNListCtrl::GetTargetColumnData( AIS_Target_Data *pAISTarget, long column ) const
{
    wxString ret;

    if( pAISTarget ) {
        switch( column ){
            case tlTRK:
                if( pAISTarget->b_show_track )
                    ret = _("Yes");
                else
                    ret = _("No");
#ifdef __WXOSX__
                if( ( pAISTarget->Class == AIS_ATON ) || ( pAISTarget->Class == AIS_BASE )
                   || ( pAISTarget->Class == AIS_ARPA ) || pAISTarget->b_SarAircraftPosnReport)
                    ret = _("-");
#endif
                break;
Gerhard
Attached Thumbnails
Click image for larger version

Name:	AIS-ListNew.png
Views:	160
Size:	242.2 KB
ID:	112089  
CarCode is online now   Reply With Quote
Old 02-11-2015, 08:30   #1637
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: Beta Test / Technical

Gerhard..
OK - nice but a Q
- ATON and BASE are obvious, they don't move, but why no tracks for SAR Aircraft, nor ARPA?
Håkan
Hakan is online now   Reply With Quote
Old 02-11-2015, 08:59   #1638
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: Beta Test / Technical

Gerhard..
This may be enough, works in Win. (Why a "-" in OSX?)
Code:
 if( pAISTarget ) {
        switch( column ){
            case tlTRK:
                if ((pAISTarget->b_show_track) && !(pAISTarget->Class == AIS_ATON) && !(pAISTarget->Class == AIS_BASE) )
                    ret = _("Yes");
                else
                    ret = _("No");
                break;
Håkan
Hakan is online now   Reply With Quote
Old 09-12-2015, 23:53   #1639
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
Re: Beta Test / Technical

Sean,
I am getting errors running OCPN under linux which seems to be due to a change in glChartCanvas:OnSize
I have attached a screen shot of the assert. The code was changed a couple of days ago to add
Code:
#else
    // OnSize can be called with a different OpenGL context (when a plugin uses a different GL context).
    SetCurrent(*m_pcontext);
at line 910.
I get this error with all plugins disabled as well as enabled.

Jon
Attached Thumbnails
Click image for larger version

Name:	glChartCanvas assert error.png
Views:	326
Size:	55.1 KB
ID:	114632  
jongough is offline   Reply With Quote
Old 10-12-2015, 01:33   #1640
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Beta Test / Technical

Revert the commit e3f48200346d90f051b8daaf7e7e6d983d01814c from 8.12.2015 "Switch to own OpenGL context in OnSize()."
Line 910 in glChartCanvas.cpp

Code:
    // this is also necessary to update the context on some platforms
#if !wxCHECK_VERSION(3,0,0)    
    wxGLCanvas::OnSize( event );
+ #else
+    // OnSize can be called with a different OpenGL context (when a plugin uses a different GL context).
+    SetCurrent(*m_pcontext);
#endif
    
    /* expand opengl widget to fill viewport */
Gerhard
CarCode is online now   Reply With Quote
Old 29-12-2015, 17:23   #1641
Registered User
 
svcattales's Avatar

Join Date: Apr 2005
Location: Apollo Beach, Fl
Boat: Privilege 37
Posts: 537
Images: 10
OCPN Potential Bug/ Technical

I recently opened two way connections between OCPN 4.0.0 (Build 2015-01-08) and Simrad AP26 autopilot. (Win 8.1) I like the functionality of coupling OCPN to autopilot in following an active route or "navigate to here" functions. Recently, I was navigating along an active OCPN route with autopilot tracking the course. When I clicked the tools button in main menu, the AP LCD screen showed a big correction and shortly after a "lost nav data" error. Cat Tales had changed course and no longer tracked the route. I duplicated this error several times with the same results. When AP is steering by compass input, there is no problem.

I tried clicking on tools button first and then coupling AP to OCPN route. The tools window stayed open and there was no error message this time, however when I clicked the X to close tools window, the AP showed a brief error message, but started following the route again shortly after.

Three pics show AP26 LCD screen: normal route tracking mode; initial deviation from track; and AP error message.
Attached Thumbnails
Click image for larger version

Name:	IMG_20151229_124700735.jpg
Views:	171
Size:	229.7 KB
ID:	115822   Click image for larger version

Name:	IMG_20151229_124710689.jpg
Views:	145
Size:	353.3 KB
ID:	115823  

Click image for larger version

Name:	IMG_20151229_124631946.jpg
Views:	168
Size:	322.8 KB
ID:	115824  
__________________
Greg, SV Cat Tales
svcattales is offline   Reply With Quote
Old 29-12-2015, 18:56   #1642
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Beta Test / Technical

What hardware interface are you using to get data from OpenCPN to the autopilot?
transmitterdan is offline   Reply With Quote
Old 29-12-2015, 20:51   #1643
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Beta Test / Technical

I ran a short test tonight. When opening the options dialog there is a "brief" interruption in the pass-thru of data. Maybe the AP is upset that the data stream pauses for a short time. But I cannot figure out how it can make a random course change. If the AP is working right it should just stay on the same course until XTE data returns. I don't have a Simrad AP so don't have first hand knowledge but maybe it somehow changes mode during a brief interruption in XTE messages. Sorry I can't find a smoking gun.

Maybe knowing what interface you use I can find a better explanation.
transmitterdan is offline   Reply With Quote
Old 30-12-2015, 05:35   #1644
Registered User
 
svcattales's Avatar

Join Date: Apr 2005
Location: Apollo Beach, Fl
Boat: Privilege 37
Posts: 537
Images: 10
Re: Beta Test / Technical

Quote:
Originally Posted by transmitterdan View Post
I ran a short test tonight. When opening the options dialog there is a "brief" interruption in the pass-thru of data. Maybe the AP is upset that the data stream pauses for a short time. But I cannot figure out how it can make a random course change. If the AP is working right it should just stay on the same course until XTE data returns. I don't have a Simrad AP so don't have first hand knowledge but maybe it somehow changes mode during a brief interruption in XTE messages. Sorry I can't find a smoking gun.

Maybe knowing what interface you use I can find a better explanation.
Thanks for the help.

The AP computer has 4 NEMA 0183 terminals (TX+, TX-, RX+, and RX-). I'm using a shielded cable from AP computer to an RS232 connector for connection to Dell laptop/OCPN. I tried to display the NEMA debug window when problem occurred, but it scrolled too fast and wouldn't stop when I clicked on the pause button.

I did give the AP some time to reacquire the route, but it didn't find it. The SIMRAD AP does have some built-in logic when it reaches a WP on an active route. If the next WP requires less than 10 degree course change, AP will automatically change course. If next WP is more than 10 degrees, AP will maintain original heading and sound alarm to press "nav" button to track to new WP. I would think this logic would allow it to reacquire the XTE sentence when it returns, but it's not doing it. Also, the route displayed on chart has not change during the error mode.
__________________
Greg, SV Cat Tales
svcattales is offline   Reply With Quote
Old 30-12-2015, 05:41   #1645
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Beta Test / Technical

Can you tell if the AP dropped out of "route" mode? Maybe it switched to another mode. But if it did that it would be abnormal behavior in my experience. But it would not be the first time I have heard of Simrad software having odd behavior.
transmitterdan is offline   Reply With Quote
Old 30-12-2015, 06:58   #1646
Registered User
 
svcattales's Avatar

Join Date: Apr 2005
Location: Apollo Beach, Fl
Boat: Privilege 37
Posts: 537
Images: 10
Re: Beta Test / Technical

Quote:
Originally Posted by transmitterdan View Post
Can you tell if the AP dropped out of "route" mode? Maybe it switched to another mode. But if it did that it would be abnormal behavior in my experience. But it would not be the first time I have heard of Simrad software having odd behavior.
It appears to me that the AP sees a movement of the next WP location in the route and displays the correction needed on LCD window and starts to follow it. Within a few seconds (maybe 20-30) it realizes the WP is not valid and displays the "NAV data lost" message and sounds an audio alarm. I do believe AP drops out of route mode and seems to track the last correction prior to alarm. The last correction was not the same bearing as the displayed route. In other words, it chases a ghost input initially and then gives up and sounds the alarm. At that point I have to correct back to course, and push the "NAV" button to reengage the "route" mode.

Other than this "tools button" error, the route tracking has worked very well and makes smart course corrections. I really like the functionality.
__________________
Greg, SV Cat Tales
svcattales is offline   Reply With Quote
Old 30-12-2015, 14:40   #1647
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Beta Test / Technical

Quote:
Originally Posted by svcattales View Post
Other than this "tools button" error, the route tracking has worked very well and makes smart course corrections. I really like the functionality.
When will you be in a position to test again? I might be able to hook you up with a recent beta version so we could see if the problem is in that version. There have been some improvements in the options dialog that may have fixed this issue.

I doubt that OpenCPN is sending invalid waypoints. My guess is that the transmission of a XTE message was interrupted and the Simrad AP tried to use an unfinished message without checking the checksum. But that is just a guess.
transmitterdan is offline   Reply With Quote
Old 31-12-2015, 01:06   #1648
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: Beta Test / Technical

And perhaps running VDR in addition to the debug window?
bcn is online now   Reply With Quote
Old 31-12-2015, 09:09   #1649
Registered User
 
svcattales's Avatar

Join Date: Apr 2005
Location: Apollo Beach, Fl
Boat: Privilege 37
Posts: 537
Images: 10
Re: Beta Test / Technical

Quote:
Originally Posted by transmitterdan View Post
When will you be in a position to test again? I might be able to hook you up with a recent beta version so we could see if the problem is in that version. There have been some improvements in the options dialog that may have fixed this issue.

I doubt that OpenCPN is sending invalid waypoints. My guess is that the transmission of a XTE message was interrupted and the Simrad AP tried to use an unfinished message without checking the checksum. But that is just a guess.
I plan to take another cruise starting around Jan 8th and would be happy to do more testing.
__________________
Greg, SV Cat Tales
svcattales is offline   Reply With Quote
Old 31-12-2015, 16:17   #1650
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Beta Test / Technical

Quote:
Originally Posted by bcn View Post
And perhaps running VDR in addition to the debug window?
I believe the VDR plugin will record all incoming NMEA data but not the specific outgoing messages to the AP. If I am wrong about that please correct my understanding.
transmitterdan is offline   Reply With Quote
Reply


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 15: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 01:11.


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.