diff options
author | Johnathan Corgan <jcorgan@corganenterprises.com> | 2009-09-23 11:40:19 -0700 |
---|---|---|
committer | Johnathan Corgan <jcorgan@corganenterprises.com> | 2009-09-23 11:40:19 -0700 |
commit | 7c4b43a1a4b3ff6c99fe96805f8d4518a22eb0a5 (patch) | |
tree | 9bfc7d87670bf2c534cad9e44dc6ed9bac5f40b3 /gr-noaa/lib | |
parent | 751e1a0608cb51525f78fe5476be46ef6e461774 (diff) |
Split HRPT script into live receive and post-processing
Cleanup debug info
Created 'demod_hrpt_file.py'
Updated 'usrp_rx_hrpt.py' with GUI, USRP, and config file
Diffstat (limited to 'gr-noaa/lib')
-rw-r--r-- | gr-noaa/lib/noaa_hrpt_decoder.cc | 8 | ||||
-rw-r--r-- | gr-noaa/lib/noaa_hrpt_deframer.cc | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gr-noaa/lib/noaa_hrpt_decoder.cc b/gr-noaa/lib/noaa_hrpt_decoder.cc index 4fae0173da..8cfaa913c4 100644 --- a/gr-noaa/lib/noaa_hrpt_decoder.cc +++ b/gr-noaa/lib/noaa_hrpt_decoder.cc @@ -59,17 +59,17 @@ noaa_hrpt_decoder::work(int noutput_items, while (i < noutput_items) { unsigned short word = in[i++]; d_word_count++; - fprintf(stderr, "%5u: ", d_word_count); + //fprintf(stderr, "%5u: ", d_word_count); for (int pos = 0; pos < 10; pos++) { char ch = (word & (1 << 9)) ? '1' : '0'; word = word << 1; - fprintf(stderr, "%c ", ch); + //fprintf(stderr, "%c ", ch); } - fprintf(stderr, "\n"); + //fprintf(stderr, "\n"); if (d_word_count == 11090) { d_word_count = 0; - fprintf(stderr, "\n"); + //fprintf(stderr, "\n"); } } diff --git a/gr-noaa/lib/noaa_hrpt_deframer.cc b/gr-noaa/lib/noaa_hrpt_deframer.cc index 77a8e3263d..b0de09c91b 100644 --- a/gr-noaa/lib/noaa_hrpt_deframer.cc +++ b/gr-noaa/lib/noaa_hrpt_deframer.cc @@ -91,7 +91,7 @@ noaa_hrpt_deframer::general_work(int noutput_items, d_shifter = (d_shifter << 1) | bit; // MSB transmitted first if ((d_shifter & 0x0FFFFFFFFFFFFFFF) == HRPT_MINOR_FRAME_SYNC) { - //fprintf(stderr, "SYNC #%i", frames_seen++); + fprintf(stderr, "SYNC #%i", frames_seen++); out[j++] = SYNC1; out[j++] = SYNC2; out[j++] = SYNC3; @@ -109,7 +109,7 @@ noaa_hrpt_deframer::general_work(int noutput_items, d_word = 0; d_bit_count = HRPT_BITS_PER_WORD; if (--d_word_count == 0) { - //fprintf(stderr, "...done\n"); + fprintf(stderr, "...done\n"); enter_idle(); } } |