Skip to content

Devel#4

Open
rubyvanrooyen wants to merge 17 commits intonrao:masterfrom
rubyvanrooyen:devel
Open

Devel#4
rubyvanrooyen wants to merge 17 commits intonrao:masterfrom
rubyvanrooyen:devel

Conversation

@rubyvanrooyen
Copy link
Copy Markdown

This merges a few pending pull requests, does some general cleanup of the Python code, adds a Python script to show a usage example, and adds a Python specific README.

Not all of the pending pull requests are merged; we've done some cherry-picking, and made an attempt of cleaning up the commits before applying. Apologies to the original pull request submitters if they feel we've overstepped boundaries.

The first commit that is our own work modifies Serial.cc <http://Serial.cc> to allow it being built on recent Linux versions. The last traces of the TCFLSH ioctl appears in Linux v4.6.1, after which it appears to be completely removed from the Linux source tree. The use of TCIFLUSH and TCIOFLUSH tries to match the original intent as expressed in the accompanying comments.

The next 3 or so commits does some clean-up of the code, removing trailing whitespace and adds some additional information to the docstrings.

We update the __credits__ in valon_synth.py, and then fix the pyserial API usage, as this seems to have changed since the original writing of the code.

An example script is added, which does a sweep across the bandwidth range. It contains raw_input calls to allow the user time to verify the result with an oscilloscope or spectrum analyser. As an aside, if your intent is to check the comms and hitting Enter repeatedly is annoying, one can add a line with raw_intput = lambda _: None at the top of the main() function to suppress the "Enter" prompts.

Some cleanup of the exception handing as added by one of the pending pull requests is done. We also add an option to valon_synth.py to allow the user to check the checksum as included in the serial comms. However, the error reporting in _verify_checksum() could possibly do with a rework.

Finally, we add a Python specific README, based on some documentation we distributed to local users of the ValonSynth software.

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.

3 participants