Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 26-09-2022, 00:26   #31
Registered User

Join Date: Mar 2011
Posts: 640
Re: OpenCPN Version 5.7 Alpha Test

Quote:
Originally Posted by bdbcat View Post
Steve...
In the "error-max" image, I assume you are referring to the Hdg value of 374 degrees (true). Bogus, for sure.
In certain cases, OCPN calculates HDT from HDM and MagVariation. This could be happening here, with some logic error. Or it could be a legitimate N2K error-max detection problem.

Can you produce a candump -L record of this situation for analysis?


Thanks
Dave
I doubt these are OCPN calculation errors. they are values that should not be processed further after reception. I have no idea how or where you are using the N2KIsNA functions.

A longitude of 214 44.901 E, a depth of 42949705 (beyond the range of recreational depth transducers), a speed of 1273 knots (which I have never attained in any form of transport !).

For a N2K developer, they're recognisable numbers.

For example, Speed. Convert SHRT_MAX (0xFFFF, 65535) from cm/s to knots (65535 * 1.94384 * 0.01) and you get 1273.

Similarly for longitude, INT_MAX (0x7FFFFFFF, 2,147,483,647‬) and multiple by 1e-7 to convert to longitude as a double.

You'll find the heading becomes even more confused because the heading value will also be affected by invalid variation and deviation values.

Nonetheless for you debugging pleasure here are max value (to be interpreted as data not available) NMEA 2000 messages.
Code:
(1664117471.702665) can0 11FD02C8#03FFFFFFFFFFFFFF
(1664117471.703664) can0 11F50BC8#01FFFFFFFFFF7FFF
(1664117471.703664) can0 11F503C8#02FFFFFFFFFFFFFF
(1664117471.704666) can0 11F802C8#04FFFFFFFFFFFFFF
(1664117471.705665) can0 11F112C8#0501FFFF7FFF7FFF
(1664117471.704666) can0 11F801C8#FFFFFF7FFFFFFF7F
You could also "hand craft" values as max value -1 (to be interpreted as error)
stevead is offline   Reply With Quote
Old 26-09-2022, 07:06   #32
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,387
Re: OpenCPN Version 5.7 Alpha Test

Steve...
Thanks, I'll check it out.
Dave
bdbcat is online now   Reply With Quote
Old 26-09-2022, 07:35   #33
Registered User

Join Date: Feb 2011
Posts: 1,102
Re: OpenCPN Version 5.7 Alpha Test

this morning using OpenGL works OK. I don't know what was wrong after installing the new version.
Have a good day.
P_Dub is offline   Reply With Quote
Old 26-09-2022, 07:51   #34
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,101
Re: OpenCPN Version 5.7 Alpha Test

Hi Dave,

it works on my AMD64 Linux Mint Vanessa system as reported before and now it is also working on the RPI4 with Ubuntu Jammy Jellyfish version.

However O-charts plugin not yet available.

All the functions work very well and fast.

Great job !

Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 26-09-2022, 10:09   #35
Registered User

Join Date: Mar 2011
Posts: 640
Re: OpenCPN Version 5.7 Alpha Test

No probs.

Perhaps a little hasty in my earlier reply
Quote:
they are values that should not be processed further after reception
For something like PGN 129025 Position Rapid Update, clearly an invalid latitude or longitude means the message should be discarded. Perhaps the GPS has yet to obtain a fix.

On the other hand for something like PGN 127250 Heading, if the heading is valid, but the variation or deviation are not, then the heading should be processed with the assumption that the variation or deviation are zero. Perhaps the compass has not been calibrated which means that you cannot reliably obtain either the true or magnetic heading, either of which is dependant on the value of the sensor's heading reference.

BTW, A quick perusal of your N2K AIS parsers reveals that you are not parsing the 5 bits of the Transceiver Information field, which would identify whether it is an own ship transmission thereby solving your VDM/VDO conundrum.
stevead is offline   Reply With Quote
Old 26-09-2022, 11:42   #36
Registered User

Join Date: Feb 2016
Posts: 143
Re: OpenCPN Version 5.7 Alpha Test

What (or which) N2K library is OpenCPN N2K support using?
teppokurki is offline   Reply With Quote
Old 26-09-2022, 13:06   #37
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,387
Re: OpenCPN Version 5.7 Alpha Test

teppo...
An adaptation of TImo's N2K library.
We plan to make this available as a sub-project for plugin developers. Not ready yet....


Dave
bdbcat is online now   Reply With Quote
Old 26-09-2022, 13:08   #38
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,387
Re: OpenCPN Version 5.7 Alpha Test

Steve...
"BTW, A quick perusal of your N2K AIS parsers reveals that you are not parsing the 5 bits of the Transceiver Information field, which would identify whether it is an own ship transmission thereby solving your VDM/VDO conundrum.'


Done: ais_decoder.cpp:582


Code:
    pTargetData->b_OwnShip =
        AISTransceiverInformation == tN2kAISTransceiverInformation::N2kaisown_information_not_broadcast;

Thanks
Dave
bdbcat is online now   Reply With Quote
Old 26-09-2022, 14:43   #39
Registered User

Join Date: Mar 2011
Posts: 640
Re: OpenCPN Version 5.7 Alpha Test

Almost.

Don't forget PGN's 129038 & 129040, Class A Position and Class B Extended Position reports respectively.

Also the AIS PGN's are good examples of where data validation is important. For example you need to validate each of the SOG, COG, Heading, Rate Of Turn values, otherwise you will be displaying misleading information.
stevead is offline   Reply With Quote
Old 26-09-2022, 16:55   #40
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,387
Re: OpenCPN Version 5.7 Alpha Test

Steve...
I tested your log snippets with INVALID values. The n2k library processes them correctly, in isolation.
So what we need is an in-situ candump -L record of a complete scenario reporting bad data. With this, we can debug the entire situation.

Do you have this, or can you create it?




Thanks
Dave
bdbcat is online now   Reply With Quote
Old 26-09-2022, 23:33   #41
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 580
Re: OpenCPN Version 5.7 Alpha Test

Tested CPN with NMEA 2000 USB Gateway YDNU-02
Lowrance HDS echo sounder with external GPS/Glonass antenna and built-in compass.
in Dashboard All data is displayed correctly, except for depth.
For the rest of the functionality, CPN did not notice any problems, on the contrary, the problem in the GRIB plugin with the display of wind particles when panning was corrected
Attached Thumbnails
Click image for larger version

Name:	2022-09-27 105859.png
Views:	52
Size:	31.7 KB
ID:	265018  
Baikal is offline   Reply With Quote
Old 27-09-2022, 06:25   #42
Registered User

Join Date: Apr 2022
Location: Always on the move
Boat: Neel 51 trimaran
Posts: 26
Re: OpenCPN Version 5.7 Alpha Test

Folks, as always you blow the doors off the building. huge thanks to you.
My feed back, the apparent wind works great on two different laptops tested with NGT. However the true wind needle in the circle wind diagram jumps around the place non sensically. I will test further and also provide osx results too.
Amazingly after months of trying, I now get rudder feedback!!! (I a on a multihull)
thanks to you all
james from Carry on
Carryonsailing is offline   Reply With Quote
Old 27-09-2022, 11:07   #43
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,119
Re: OpenCPN Version 5.7 Alpha Test

james..
Many thanks for the report.
The true wind error is not clear but dependent of your received data it may be result of a bug soon corrected. Stay tuned for next alpha update.
Hakan is offline   Reply With Quote
Old 28-09-2022, 08:55   #44
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 145
Re: OpenCPN Version 5.7 Alpha Test

Quote:
Originally Posted by Hakan View Post
Does anyone happens to have a candump -L for a moving ship including speed trough water and if possible distance log data?
Thanks
Håkan
I was offline for a while. Do you still need real life log files?

Best,

Manfred
Aldebaran17 is offline   Reply With Quote
Old 28-09-2022, 09:03   #45
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,119
Re: OpenCPN Version 5.7 Alpha Test

Manfred..
The two asked for are covered but if you happens to have a moving ship with some instruments it would be really appreciated. All different test scenarios are most welcome and what we have are for moored ships. Anything is for sure welcome.

So, yes please if you can.
Many thanks
Håkan
Hakan is offline   Reply With Quote
Reply

Tags
enc, opencpn

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
OpenCPN for Android Alpha test 4.1.409 bdbcat OpenCPN 117 12-10-2015 01:28
OpenCPN for Android Alpha test 4.1.427 bdbcat OpenCPN 139 29-05-2015 14:27
OpenCPN for Android Alpha test 4.1.412 bdbcat OpenCPN 120 15-05-2015 12:12
S63_PI Alpha Test 0.3.0 bdbcat OpenCPN 25 07-04-2014 10:00
S63_PI Alpha Test 0.2.0 bdbcat OpenCPN 29 05-02-2014 10:26

Advertise Here


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


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.