Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could NMEAMessage contain fields for each field in raw? #24

Closed
Allan-S-Menefee opened this issue Apr 29, 2021 · 1 comment
Closed

Could NMEAMessage contain fields for each field in raw? #24

Allan-S-Menefee opened this issue Apr 29, 2021 · 1 comment

Comments

@Allan-S-Menefee
Copy link

Having easy access to the results of NMEAMessage(foo).raw.decode().split(',') would make things neater for certain tasks, in case it's necessary to manually process those fields.

For example:
!AIVDM,1,1,,A,15Mj23P000G?q7fK>g:o7@1:0L3S,0*1B
would have fields:
{'message_fragments': 1, 'fragment_number': 1, 'message_id': None, 'channel': 'A', 'payload': '15Mj23P000G?q7fK>g:o7@1:0L3S', 'fill_bits':0, 'checksum': '*1B'}

@Allan-S-Menefee
Copy link
Author

It already does, it's just not in the dict. They're stored as attributes on the NMEAMessage.

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

No branches or pull requests

1 participant