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

Add Windows/Mac compatibility, implement the UBX-RXM-RAWX message, fix timeout bug. #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

davidallen353
Copy link

@davidallen353 davidallen353 commented Nov 27, 2020

This pull request includes 3 distinct changes.

  1. There does not appear to be a version of the spidev module that functions natively on Mac or Windows. I added code to bypass the SPI functionality if not on a linux system. A useful warning when this bypass is triggered.
  2. The core.Parse._read_until() static method will continue to read until it finds a terminator. However this method bypasses the timeout, so if the read misses the terminator, then it will continue indefinitely. I used the timeout defined by the stream input to act as a timeout for the read. If the timeout is reached before the terminator is found, a SerialException is raised.
  3. I added the UBX-RXM-RAWX message that includes pseudorange, carrier phase, and doppler measurements.

These changes were tested on a F9P and M8N. (Note the M8N doesn't support RAWX)

David William Allen added 3 commits November 25, 2020 17:31
…ss it.

Added pyserial to the requirements
Added timeout for the _read_until method
Added a SerialException for the _read_until method failing to find a terminator.

Add the message dictionary that indicates the code for the RAWX message

Added RXM_CLS to the list of predefined classes
@davidallen353
Copy link
Author

I just looked at PR #10 and the separate NMEA/UBX parsing may make the timeout bug that I found difficult to replicate. I was seeing a bunch of NMEA messages come over the serial port when it missed the terminator, so it is possible that splitting NMEA and UBX would fix everything.

@davidallen353
Copy link
Author

@edspark Is there anything that you need before considering this pull request?

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

Successfully merging this pull request may close these issues.

1 participant