sailoog / openplotter

Obsolete project. New one and active: https://github.com/openplotter
http://www.sailoog.com/openplotter
GNU General Public License v2.0
153 stars 53 forks source link

NMEA_0183_generator missing sentences #270

Open marcelrv opened 4 years ago

marcelrv commented 4 years ago

Hi,

I was trying to create some DPT and DBT sentences, but seems these are missing from the generator. The underlaying pynmea2 has these..

image

if I replicate the content of add_NMEA_0183.py, I also see them (see my snippet below)

import wx, pynmea2, inspect, webbrowser, json, subprocess, requests, re

list_sentences=[]
sentences=[]
fields=[]

for name, obj in inspect.getmembers(pynmea2):
        if inspect.isclass(obj):
                if 'pynmea2.types.talker.' in str(obj) and 'pynmea2.types.talker.Transducer' not in str(obj):
                        list_sentences.append('$--'+obj.__name__)
                        sentences.append(obj.__name__)
                        fields.append(obj.fields)

print  list_sentences

gives a list containing $--DBT', '$--DPT', (note, this list has 57 entries, the dropdown approx 36, so others seem to be missing as well) ['$--AAM', '$--ALK', '$--ALM', '$--APA', '$--APB', '$--BEC', '$--BOD', '$--BWC', '$--BWR', '$--BWW', '$--DBS', '$--DBT', '$--DPT', '$--DTM', '$--GBS', '$--GGA', '$--GLL', '$--GNS', '$--GSA', '$--GST', '$--GSV', '$--HDG', '$--HDM', '$--HDT', '$--HSC', '$--MDA', '$--MTW', '$--MWD', '$--MWV', '$--OSD', '$--R00', '$--RMA', '$--RMB', '$--RMC', '$--ROT', '$--RPM', '$--RSA', '$--RTE', '$--STN', '$--TLL', '$--TRF', '$--TTM', '$--TXT', '$--VBW', '$--VDR', '$--VHW', '$--VLW', '$--VPW', '$--VTG', '$--VWR', '$--VWT', '$--WCV', '$--WNC', '$--WPL', '$--XDR', '$--XTE', '$--ZDA']

any idea why these are missing from the add dialog? I scanned the code, but don't really understand why they are skipped