Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 25-01-2010, 15:01   #376
Registered User

Join Date: Oct 2009
Posts: 50
Quote:
Originally Posted by Psyches View Post
Hi Pete, yes I do this. I haven't noticed any big perf problem when I compile, and I generally compile and run the debug version on VC2008EE as well. I haven't done a side-by-side comparison though. Feel free to post specifics on problems you see.

Mark
Hi Mark,

So, you use the Sourceforge CVS code, good. Is the dev .exe we use, compiled with exactly Sourceforge CVS code?
The problems I see are that my version is extremely sluggish when panning/zooming. 20 seconds is not unusual and sometimes 60 secs to pan from one CM93 chart to the next. Sometimes it will to go into an endless loop, and doesn't change charts. Zoom in/out several steps and same problem. Just thought I would touch base to see that everything I have is correct before I delve in...... Could I send you my home-made .proj file?

/Pete
__________________

__________________
PeteCross is offline   Reply With Quote
Old 25-01-2010, 21:15   #377
Registered User
 
Psyches's Avatar

Join Date: Apr 2008
Location: SF Bay Area
Boat: Tartan 30 - Bluegrass
Posts: 187
Send a message via Yahoo to Psyches Send a message via Skype™ to Psyches
Quote:
Originally Posted by PeteCross View Post
Hi Mark,

So, you use the Sourceforge CVS code, good. Is the dev .exe we use, compiled with exactly Sourceforge CVS code?
The problems I see are that my version is extremely sluggish when panning/zooming. 20 seconds is not unusual and sometimes 60 secs to pan from one CM93 chart to the next. Sometimes it will to go into an endless loop, and doesn't change charts. Zoom in/out several steps and same problem. Just thought I would touch base to see that everything I have is correct before I delve in...... Could I send you my home-made .proj file?

/Pete
Pete, I don't see the same behavior, using a mix of bsb and s57 noaa charts - so I'm not sure what's up. How about this - I've put a pointer to my latest proj, and you can check it against yours, or follow the instructions to just use it. Here's a link to the post: OpenCPN Build on Win32

As far as the perf problem, I'm not sure what to tell you - you may need to do a bit of debugging or analysis to see where the time is going.

Mark
__________________

__________________
Psyches is offline   Reply With Quote
Old 25-01-2010, 22:42   #378
Registered User

Join Date: Dec 2009
Location: Ocean Grove Aus
Boat: adams 40
Posts: 70
[QUOTE=HamishB;393431]I am curious to know if anyone has compared AIS support against the new AIS decoder from Gpsd?
/QUOTE]

Hamish,
Ref my post for additional background. #10 Improved GNUAIS (AISMON for Linux) Gnuradio is active project unlike gnuais. The code to decode gmsk appears to reside in two c source files and should be a resonable pluging to gnuais. Transcribing to the nmea output code is relatively straight forward in comparison and many programs should be able to do this as does gnuais. I have not looked at how these compare to the gpsd code.

Since my post I have now got gnuais working standalone, but not robustly as I have determined my receiver is not sensitive enough. However I have also not been able to forward to OpenCPN via a 'virtual serial port' as Hackoon indicated. Gnuais is not very user friendly to a casual ubuntu user and on my machine it says it is unable to access port parameters.
As always when something doesn't work it is very difficult to track down what part of the software chain is broken.
__________________
otya is offline   Reply With Quote
Old 26-01-2010, 03:23   #379
Registered User

Join Date: Oct 2009
Posts: 50
Quote:
Originally Posted by Psyches View Post
Pete, I don't see the same behavior, using a mix of bsb and s57 noaa charts - so I'm not sure what's up. How about this - I've put a pointer to my latest proj, and you can check it against yours, or follow the instructions to just use it. Here's a link to the post: OpenCPN Build on Win32

As far as the perf problem, I'm not sure what to tell you - you may need to do a bit of debugging or analysis to see where the time is going.

Mark
Mark,

Thanks for the help.
It was the compiler switches I was thinking about. Yours has much fewer, so I have tried this and it compiles without any warnings, just like mine, but the results are the same...
So I think it probably points to my charts....
We here in Europe and elsewhere, don't have the luxury of free official charts, so we often make do with various "dubious" sources of charts, plus own scanned, of varying quality.

I'll start digging now, no more excuses left....
Get back to you when I have something concrete.

/Pete
__________________
PeteCross is offline   Reply With Quote
Old 26-01-2010, 03:46   #380
Registered User

Join Date: Nov 2008
Location: Tampa, Florida
Posts: 36
Pete
Might I suggest that you download a few of our "free official charts" for testing. They may not help you out on the water but the can be used to see if it is the chart or not that is causing your sluggishness.

Dan
__________________
raisin56 is offline   Reply With Quote
Old 26-01-2010, 10:18   #381
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,122
Linux compiling bug.

No, I did not give up

Here is another patch. This time I have done more testing on my box, and I'm fairly sure this one will work. But more testing is still needed. Please test and report back.
Psyches, please test on Win as well, as this patch affects other operating systems in a minor way, but anyway......better safe than sorry.
Replace nmea.h and ais.h in the source code "include" directory with the two provided files.

Thomas
Attached Files
File Type: doc lin_patch.zip.doc (9.9 KB, 165 views)
__________________
cagney is offline   Reply With Quote
Old 26-01-2010, 10:35   #382
Registered User
 
sredna's Avatar

Join Date: Dec 2009
Location: Vester Skerninge, Danmark
Boat: Svendborg Senior DEN 38 Kate
Posts: 107
Thomas, I promise I will give it a spin in a bit
Btw, maybe my failure yesterday could be a result of not doing make clean?

Anders
__________________
sredna is offline   Reply With Quote
Old 26-01-2010, 14:47   #383
Registered User
 
Psyches's Avatar

Join Date: Apr 2008
Location: SF Bay Area
Boat: Tartan 30 - Bluegrass
Posts: 187
Send a message via Yahoo to Psyches Send a message via Skype™ to Psyches
Quote:
Originally Posted by cagney View Post
No, I did not give up

Here is another patch. This time I have done more testing on my box, and I'm fairly sure this one will work. But more testing is still needed. Please test and report back.
Psyches, please test on Win as well, as this patch affects other operating systems in a minor way, but anyway......better safe than sorry.
Replace nmea.h and ais.h in the source code "include" directory with the two provided files.

Thomas
Okee...builds on win. This time I'll wait for other verification too, before checking in

Mark
__________________
Psyches is offline   Reply With Quote
Old 26-01-2010, 16:47   #384
Registered User

Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 385
Hello Mark

Builds OK here on Win.

Chuck
__________________
ChuckSK is offline   Reply With Quote
Old 29-01-2010, 12:45   #385
Registered User
 
sredna's Avatar

Join Date: Dec 2009
Location: Vester Skerninge, Danmark
Boat: Svendborg Senior DEN 38 Kate
Posts: 107
Developer talk?

Is there a forum for developer discussion? Maybe sourceforge forum?

I have run into a issue that I do not understand: I try to calculate a scale for zooming into a route, supposedly pixel pr meter. So I calculate the width and height of the route bounding box in meters, and divede those by window (the chart) width/height, and select the least scale.

However, I have to multiply with 0.55, then the chart zooms so that the route is fully visible. Why is it 45% off?

Code:
      // Calculate bbox center
      double clat = route->RBBox.GetMinY() + (route->RBBox.GetHeight()/2);
      double clon = route->RBBox.GetMinX() + (route->RBBox.GetWidth()/2);
      
      // Calculate ppm
      double rw, rh, ppm; // route width, height, final ppm scale to use
      int ww, wh; // chart window width, height
      // route bbox width in nm
      DistanceBearingMercator(route->RBBox.GetMinY(), route->RBBox.GetMinX(),
                              route->RBBox.GetMinY(), route->RBBox.GetMaxX(),
                              NULL, &rw);
      // route bbox height in nm
      DistanceBearingMercator(route->RBBox.GetMinY(), route->RBBox.GetMinX(),
                              route->RBBox.GetMaxY(), route->RBBox.GetMinX(),
                              NULL, &rh);
     
      cc1->GetSize(&ww, &wh);
      ppm = wxMin(ww/(rw*1852), wh/(rh*1852));

      cc1->SetViewPoint(clat, clon, ppm*.55, 0, 0);
Probably, I do not understand the workings of ChartCanvas::SetViewPoint() correctly. It would be nice to understand fully how this works.
__________________
sredna is offline   Reply With Quote
Old 29-01-2010, 13:48   #386
Registered User
 
Psyches's Avatar

Join Date: Apr 2008
Location: SF Bay Area
Boat: Tartan 30 - Bluegrass
Posts: 187
Send a message via Yahoo to Psyches Send a message via Skype™ to Psyches
Quote:
Originally Posted by ChuckSK View Post
Hello Mark

Builds OK here on Win.

Chuck
Thanks Chuck - for me as well; I'm waiting for replies from linux folks before checking in, since they had some probs last time.

M
__________________
Psyches is offline   Reply With Quote
Old 29-01-2010, 14:05   #387
Registered User
 
Psyches's Avatar

Join Date: Apr 2008
Location: SF Bay Area
Boat: Tartan 30 - Bluegrass
Posts: 187
Send a message via Yahoo to Psyches Send a message via Skype™ to Psyches
Hi Anders, dev discussions have been happening here or in private email rather than sourceforge. But I think using sf.net might be a good idea because open dev discussions have been somewhat limited to keep work inside "the sausage factory" to a minimum to coin Dave's phraseology :-)

OpenCPN Version 1.3.5 Beta Technical

I already get all sf.net forum posts, and some discussion is needed, so...feel free to start. And when I get a chance I'll look into your question / issue.

Mark
__________________
Psyches is offline   Reply With Quote
Old 30-01-2010, 13:58   #388
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,493
SetViewPoint()

Sredna....

Two things going on here:
1. constant ppm values for a Mercator chart are meaningful only measured along parallels of latitude, or the "x" direction without skew. Your code may be choosing the y direction in the wxMin() function....

but more importantly....
2. A limitation of the current architecture requires that the ppm scale as passed to SetViewPoint() of a Raster chart must be a binary multiple of the chart native (1x) ppm scale. In 1.3.6 and below, this requirement is met by some code in chart1.cpp which makes this promise. This is done for performance reasons. You will need to do something similar to avoid funny display artifacts at arbitrary scale value.

See
ChartBaseBSB::GetClosestValidNaturalScalePPM(doubl e target_scale, double scale_factor_min, double scale_factor_max);


This limitation for raster charts is going away very soon now, as it is unwieldy for building chart quilts.....


Good Luck
Dave
__________________
bdbcat is offline   Reply With Quote
Old 30-01-2010, 14:16   #389
Registered User
 
Psyches's Avatar

Join Date: Apr 2008
Location: SF Bay Area
Boat: Tartan 30 - Bluegrass
Posts: 187
Send a message via Yahoo to Psyches Send a message via Skype™ to Psyches
Thanks Dave...I was hoping you might respond. #1 makes sense, but wasn't sure about #2 - I believe Anders was using vector not raster currently. I think route code should not care about chart type and scale granularity so it sounds like we need more or different abstractions...and need to start removing chart-type dependencies in various places?

Any comments on sf.net for more code tech conversations? Are you back online more now?

Mark
__________________
Psyches is offline   Reply With Quote
Old 30-01-2010, 15:01   #390
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,493
Status...

Mark....

Sorry, another "drive-by" posting. Tomorrow I'm offline for a good month at least.

History: In the olden times, opencpn version 0.0.1 supported only BSB charts, and needed to run on 300 Mhz 256MB machine. And it did, with lots of limitations/optimizations for performance. Binary math on pixel bitmaps was one thing, and there were others.....

Fast forward to V1.3.6. Lots of vestigial code is still in there, requiring dynamic casting for access to the old optimized methods. With reasonably modern processor and memory specs, a lot of this stuff can go away. And it is going, Version-by-Version, with much nicer looking code as a result. We move forward by steps.

This is classic organic development. Just barely manageable with 3 or 4 coders. Any more and we would need to stop and write/negotiate some specs. And we may come to that eventually, but I instinctively resist so far.....

Here is another example to think about: In a quilted model, the notion of a "current chart" (ChartBase *Current_Ch in the code) goes away completely, to be replaced by a "current quilt". The chart select bar at the screen bottom goes away...etc., etc..... Turning quilting on and off will be a great big mode switch, affecting the UI just as much as the code guts.

Enjoy....
Dave
__________________

__________________
bdbcat is offline   Reply With Quote
Reply

Thread Tools
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 14: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 05:16
technical difficulties witchcraft The Sailor's Confessional 1 30-05-2005 15:09
Dow Corning Technical Manual GordMay The Library 0 12-04-2005 17:25


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 11:25.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.