diff options
author | Bolin Hsu <bolin.hsu@gmail.com> | 2014-03-29 22:00:16 -0700 |
---|---|---|
committer | Bolin Hsu <bolin.hsu@gmail.com> | 2014-04-11 21:48:06 -0700 |
commit | 6643727f8a2465c88c58803b9455fe0c529cc1c0 (patch) | |
tree | f6dac9f5e36d56e827755fa2e8e4e53a6e4feec5 /gr-digital/python | |
parent | 1092e685defd10692d3fa47435c716a88dfd8712 (diff) |
Fix inconsistent naming and docstring
(1) In the XML files, all keys except "log" are used as parameter names.
(2) Most files use the parameter name "log" to flip logging.
So change the ones that use "logging" or "debug" to "log".
(3) packet_mod constructor does not have the argument payload_length.
(4) Add missing args to some docstrings
(5) Resolve inconsistency between gmsk_demod code and doc
Diffstat (limited to 'gr-digital/python')
-rw-r--r-- | gr-digital/python/digital/gmsk.py | 6 | ||||
-rw-r--r-- | gr-digital/python/digital/packet_utils.py | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gr-digital/python/digital/gmsk.py b/gr-digital/python/digital/gmsk.py index 9a44837002..012c91f9d0 100644 --- a/gr-digital/python/digital/gmsk.py +++ b/gr-digital/python/digital/gmsk.py @@ -66,7 +66,7 @@ class gmsk_mod(gr.hier_block2): samples_per_symbol: samples per baud >= 2 (integer) bt: Gaussian filter bandwidth * symbol time (float) verbose: Print information about modulator? (boolean) - debug: Print modulation data to files? (boolean) + log: Print modulation data to files? (boolean) """ def __init__(self, @@ -176,12 +176,12 @@ class gmsk_demod(gr.hier_block2): Args: samples_per_symbol: samples per baud (integer) - verbose: Print information about modulator? (boolean) - log: Print modualtion data to files? (boolean) gain_mu: controls rate of mu adjustment (float) mu: fractional delay [0.0, 1.0] (float) omega_relative_limit: sets max variation in omega (float) freq_error: bit rate error as a fraction (float) + verbose: Print information about modulator? (boolean) + log: Print modualtion data to files? (boolean) """ def __init__(self, diff --git a/gr-digital/python/digital/packet_utils.py b/gr-digital/python/digital/packet_utils.py index 865f3adbb4..d7aa4e66ca 100644 --- a/gr-digital/python/digital/packet_utils.py +++ b/gr-digital/python/digital/packet_utils.py @@ -113,7 +113,9 @@ def make_packet(payload, samples_per_symbol, bits_per_symbol, bits_per_symbol: (needed for padding calculation) (int) preamble: string of ascii 0's and 1's access_code: string of ascii 0's and 1's + pad_for_usrp: If true, packets are padded such that they end up a multiple of 128 samples(512 bytes) whitener_offset: offset into whitener string to use [0-16) + whitening: Whether to turn on data whitening(scrambling) (boolean) Packet will have access code at the beginning, followed by length, payload and finally CRC-32. |