openplotter icon indicating copy to clipboard operation
openplotter copied to clipboard

NMEA_0183_generator missing sentences

Open marcelrv opened this issue 6 years ago • 0 comments

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

marcelrv avatar Aug 05 '19 22:08 marcelrv