Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

NMEA_0183_generator missing sentences #270

Open
marcelrv opened this issue Aug 5, 2019 · 0 comments
Open

NMEA_0183_generator missing sentences #270

marcelrv opened this issue Aug 5, 2019 · 0 comments

Comments

@marcelrv
Copy link

marcelrv commented Aug 5, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant