Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 05-06-2019, 14:43   #16
Moo
Registered User

Join Date: Mar 2017
Posts: 804
Re: Increase "Own Vessel" render update time

Quote:
Originally Posted by imp-cruiser View Post
Sure. Temporary link: https://nextcloud.svbaelen.org:444/i...PSMfcLgk5zXmAz

More info on the replay method in file header (stream.py).

Looking at your data. The time stamp has decimal places to x.xx . This, AFAIK, is not part of the RMC sentence so will probably be ignored. Others will clarify. My usual NMEA playback app just rejects the whole file as non valid NMEA and that is all I see wrong at a quick glance.



If you want faster updates it may have to be provided in other sentences that support that.
Moo is offline   Reply With Quote
Old 06-06-2019, 04:12   #17
Registered User

Join Date: Jun 2019
Posts: 16
Re: Increase "Own Vessel" render update time

Quote:
Originally Posted by Moo View Post
If you want faster updates it may have to be provided in other sentences that support that.
Thanks, Moo, I'll look into it :-).
imp-cruiser is offline   Reply With Quote
Old 06-06-2019, 13:19   #18
Moo
Registered User

Join Date: Mar 2017
Posts: 804
Re: Increase "Own Vessel" render update time

Quote:
Originally Posted by imp-cruiser View Post
Thanks, Moo, I'll look into it :-).

Although I suspect that O is just ignoring the decimal time (or accepting it just fine) because playing your file here I see very smooth updates when there is information to update.



I played your file with the VDR plugin as my usual app (GpsGate) rejects it. I didn't try your stream.py but looking at the code it uses TCP perhaps there is an issue with that .. Perhaps try VDR? or change stream.py to use UDP?


Chris
Moo is offline   Reply With Quote
Old 02-08-2019, 08:42   #19
Registered User

Join Date: Jun 2019
Posts: 16
Re: Increase "Own Vessel" render update time

Sorry to bump this old thread, but I had some time today to check this again.
I tried with several NMEA files and with the VDR plugin, but the ship icon keeps getting updated every 1 second (both in North Up and in Course Up).

The ship's longitude and latitude are getting updated much more frequent though (>10 x second), but the icon does not.

I also read something here;
"The Own Ship and AIS icons are still updated every second.", so this does seem to be normal behavior?
imp-cruiser is offline   Reply With Quote
Old 02-08-2019, 09:03   #20
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Increase "Own Vessel" render update time

How many miles runs your ship within one second?
CarCode is online now   Reply With Quote
Old 02-08-2019, 09:19   #21
Registered User

Join Date: Jun 2019
Posts: 16
Re: Increase "Own Vessel" render update time

Quote:
Originally Posted by CarCode View Post
How many miles runs your ship within one second?
About 7km/h; so 0.0012 miles/second?
imp-cruiser is offline   Reply With Quote
Old 02-08-2019, 10:07   #22
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Increase "Own Vessel" render update time

Quote:
Originally Posted by imp-cruiser View Post
About 7km/h; so 0.0012 miles/second?
So the ships icon update rate of one second seems enough or not?
CarCode is online now   Reply With Quote
Old 02-08-2019, 10:41   #23
Registered User

Join Date: Jun 2019
Posts: 16
Re: Increase "Own Vessel" render update time

Well, I was hoping to increase the update time, to e.g 0.25 seconds, or at least faster than one second.
imp-cruiser is offline   Reply With Quote
Old 02-08-2019, 15:11   #24
Moo
Registered User

Join Date: Mar 2017
Posts: 804
Re: Increase "Own Vessel" render update time

Just checking: What version of OCPN are you using because, as myself and others have found, the updates happen as fast as they come in.


Lets have the full technical specs of you system and software version. Perhaps there is some other bottleneck in your system. Because nobody else sees this problem.



Chris
Moo is offline   Reply With Quote
Old 02-08-2019, 22:38   #25
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,735
Re: Increase "Own Vessel" render update time

Quote:
Originally Posted by imp-cruiser View Post
About 7km/h; so 0.0012 miles/second?
4kn or aprox. 2m/s

2m is more or less the error you can expect from a standard GPS or the jitter you might see (there will be bigger spikes sometimes). With WAAS/EGNOS turned on we talk about an 1.2-1.5m error.

What (visualized) improvement in position you expect from a higher update rate then?
Some jitter of the rendered boat jumping 1px up and down and left and right you will get for sure.
bcn is online now   Reply With Quote
Old 02-08-2019, 23:33   #26
Registered User
 
StuM's Avatar

Cruisers Forum Supporter

Join Date: Nov 2013
Location: Port Moresby,Papua New Guinea
Boat: FP Belize Maestro 43 and OPBs
Posts: 12,891
Re: Increase "Own Vessel" render update time

More frequent graphic updates seem pointless to me.



At 0.1nm on the ruler (bottom left) on my laptop, two points 2 m apart both occupy the same pixel and the full screen is about 1 nm wide by 0.5 nm high.


Unless you use an even higher zoom, your vessel would not move more than once per second at 4 knots regardless of how frequently you sample.


At a more reasonable close in zoom of 1 nm ( 10 x 5 nm area of chart), you would have to be moving at 40 knots for the boat to move more than one pixel/second.



Considering the overhead of redrawing areas of a graphic display, doing so more frequently will make the program less responsive with no real benefit.



The status bar updates more frequently because it is a less CPU intensive operation and the display shows constantly changing values with minutes to 4 decimal places..


Which raises one of my pet peeves. Why show GPS positions to a false precision of less than 20 centimeters?
StuM is offline   Reply With Quote
Old 03-08-2019, 04:02   #27
Registered User

Join Date: Jun 2019
Posts: 16
Re: Increase "Own Vessel" render update time

Quote:
Originally Posted by Moo View Post
Just checking: What version of OCPN are you using
Currently running OpenCPN version 5.0.0, built from source <https://github.com/OpenCPN/OpenCPN/releases/tag/v5.0.0>
(Note: I tried previous versions as well.)

Quote:
Originally Posted by Moo View Post
Lets have the full technical specs of you system and software version. Perhaps there is some other bottleneck in your system. Because nobody else sees this problem.
Yeah it's a bit strange :/.

Ubuntu 18.04.2 LTS
Machine: Dell XPS 13
imp-cruiser is offline   Reply With Quote
Old 03-08-2019, 04:19   #28
Registered User

Join Date: Jun 2019
Posts: 16
Re: Increase "Own Vessel" render update time

Quote:
Originally Posted by StuM View Post
More frequent graphic updates seem pointless to me.

It is definitely not a "hard" requirement. As I said, it would be useful for simulation purposes, where I tend to speed up the data (e.g. x 10), which means a virtual vessel speed of approximately 20 to 30 m/s and more ...


Quote:
Originally Posted by StuM View Post
Considering the overhead of redrawing areas of a graphic display, doing so more frequently will make the program less responsive with no real benefit.

True, but I assume the impact will be relatively limited, no? Redrawing _only_ the vessel icon more than once per second is not that CPU intensive. I would merely use it in simulation mode anyway; for real sailing, one second is definitely enough (and optimizing onboard CPU load is much more critical there as well).
imp-cruiser is offline   Reply With Quote
Old 03-08-2019, 04:41   #29
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,735
Re: Increase "Own Vessel" render update time

When the position changes the program has to evaluate the complete viewport and redraw it in case. Not just the vessel icon.
When rendering a displaced (vessel) icon you need to fill at least the "gap" left behind. And render the track..
Now add "heading-up", "auto-follow", chart boundaries, CPA lines....
bcn is online now   Reply With Quote
Old 03-08-2019, 05:04   #30
Registered User

Join Date: Jun 2019
Posts: 16
Re: Increase "Own Vessel" render update time

Hm. That does imply quite some overhead. Thanks for clarifying.
imp-cruiser 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
"recent price reduction""owner anxious""bring all offers" sailorboy1 Dollars & Cents 15 06-11-2019 04:06
Can a foreigner own an Australian flagged vessel, in Austrlia Epicurean Oceania - Australiana 9 04-06-2018 20:44
Wanting to sail and own our own boat medic1957 Meets & Greets 0 18-05-2018 14:59
Realistically, how much will it cost to own and run my own sailboat? willumsen Boat Ownership & Making a Living 5 06-06-2013 16:27

Advertise Here


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


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.