From: drowe67 Date: Tue, 27 Nov 2012 03:39:17 +0000 (+0000) Subject: rescaled waterfall and spectrum to be 300Hz wide, as per fdmdv1 X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=fbafc8cca65fc3cf0299e3ca563c457e0514ca2a;p=freetel-svn-tracking.git rescaled waterfall and spectrum to be 300Hz wide, as per fdmdv1 git-svn-id: https://svn.code.sf.net/p/freetel/code@1082 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/fdmdv2/src/fdmdv2_defines.h b/fdmdv2/src/fdmdv2_defines.h index f751c717..92ad3de8 100644 --- a/fdmdv2/src/fdmdv2_defines.h +++ b/fdmdv2/src/fdmdv2_defines.h @@ -31,7 +31,7 @@ #define STEP_MAG_DB 5.0 // magnitude axis step #define BETA 0.95 // constant for time averaging spectrum data #define MIN_F_HZ 0 // min freq on Waterfall and Spectrum -#define MAX_F_HZ 4000 // max freq on Waterfall and Spectrum +#define MAX_F_HZ 3000 // max freq on Waterfall and Spectrum #define STEP_F_HZ 500 // major (e.g. text legend) freq step on Waterfall and Spectrum graticule #define STEP_MINOR_F_HZ 100 // minor (ticks) freq step on Waterfall and Spectrum graticule #define WATERFALL_SECS_Y 30 // number of seconds respresented by y axis of waterfall diff --git a/fdmdv2/src/fdmdv2_main.cpp b/fdmdv2/src/fdmdv2_main.cpp index 21657650..b4cfbfed 100644 --- a/fdmdv2/src/fdmdv2_main.cpp +++ b/fdmdv2/src/fdmdv2_main.cpp @@ -309,7 +309,7 @@ MainFrame::MainFrame(wxWindow *parent) : TopFrame(parent) wxGetApp().m_playFileToMicInPath = pConfig->Read("/File/playFileToMicInPath", wxT("")); wxGetApp().m_recFileFromRadioPath = pConfig->Read("/File/recFileFromRadioPath", wxT("")); wxGetApp().m_recFileFromRadioSecs = pConfig->Read("/File/recFileFromRadioSecs", 30); - wxGetApp().m_playFileFromRadioPath = pConfig->Read("/File/playFileToFromRadioPath", wxT("")); + wxGetApp().m_playFileFromRadioPath = pConfig->Read("/File/playFileFromRadioPath", wxT("")); bool slow = false; // prevents compile error when using default bool wxGetApp().m_snrSlow = pConfig->Read("/Audio/snrSlow", slow); @@ -2216,7 +2216,7 @@ void per_frame_rx_processing( data_flag_index = codec2_get_spare_bit_index(c2); assert(data_flag_index != -1); // not supported for all rates - if (0/*codec_bits[data_flag_index]*/) { + if (codec_bits[data_flag_index]) { //printf("data_flag_index: %d\n", data_flag_index); //printf("rx data bits: "); //for(i=0; i