Rasbats / shipdriver_pi

Almost a simulator
GNU General Public License v3.0
3 stars 21 forks source link

Request to have ShipDriver Optionally record NMEA Sentences Other Than !AIVDM #590

Open AlanH70 opened 6 months ago

AlanH70 commented 6 months ago

Rasbats, here is a discussion I just began on the VDRplayer github site but relates to ShipDriver:

"The sample NMEA .txt file Hakefjord.txt contains numerous types of NMEA 0183 sentences. GPS data as GLL, RMC, and many others and AIS data as AIVDM and AIVDO sentences. Upon playback of Hakefjord.txt OpenCPN displays and plots the Own Ship icon and its changing positions and also plots AIS Target icons and their changing positions as separate vessels.

When the ShipDriver plugin is used to simulate navigation of our vessel it also displays in OpenCPN the Own Ship icon and plots its positions but currently it records only !AIVDM data for later replay. When the VDR plugin or the VDRplayer python script replay the ShipDriver recorded track file of !AIVDM sentences OpenCPN interprets the data, of course. as belonging to some AIS Target vessel, not Own Ship. So OpenCPN displays and position plots the AIS Target icon even though the original context is a ShipDriver record of Own Ship.

One downside of this is the OpenCPN toolbar function "Enable Tracking" works fine if the vessel is interpreted as Own Ship, but not if the vessel is an AIS Target. The other downside is aesthetic. A record of own ship navigation should display the Own Ship icon on replay.

I think this issue probably applies to the ShipDriver plugin, not directly to this VDRplayer script. But in order to take the issue up with ShipDriver I think we need to know which NMEA sentence[s] transmitted by VDRplayer are interpreted by OpenCPN as Own Ship as is evident somehow is happening in replaying Hakefjord.txt."

Rasbats, in a recent discussion you mentioned you are creating GLL and RMC sentences for the next rev of ShipDriver. Does that mean you will offer the option of recording those sentences instead of or in addition to the !AIVDM sentences?

If you do provide recording of, say, GLL sentences do you know if OpenCPN upon replay of your record will interpret then as coming from Own Ship and will apply that plotted icon?

leamas commented 6 months ago

This might be better solved in a more general context like https://github.com/OpenCPN/OpenCPN/issues/3667 . It is an important discussion, though.

EDIT: fix link

Rasbats commented 6 months ago

@AlanH70 TBC.

AlanH70 commented 6 months ago

OK. THanks.