From d24912c798a46f0475c0d8fb5d5c558b6652d75c Mon Sep 17 00:00:00 2001 From: drowe67 Date: Fri, 23 Nov 2012 23:27:07 +0000 Subject: [PATCH] minor tweaks to scatter scaling git-svn-id: https://svn.code.sf.net/p/freetel/code@1056 01035d8c-6547-0410-b346-abe4f91aad63 --- fdmdv2/src/Makefile.win32 | 3 +-- fdmdv2/src/fdmdv2_plot_scatter.cpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/fdmdv2/src/Makefile.win32 b/fdmdv2/src/Makefile.win32 index f536fe8f..496eb1dc 100644 --- a/fdmdv2/src/Makefile.win32 +++ b/fdmdv2/src/Makefile.win32 @@ -27,8 +27,7 @@ fdmdv2_plot_spectrum.o \ fdmdv2_plot_waterfall_linux.o \ fdmdv2_pa_wrapper.o \ dlg_audiooptions.o \ -dlg_comports.o \ -dlg_options.o +dlg_comports.o HDRS = dlg_audiooptions.h dlg_comports.h fdmdv2_main.h fdmdv2_defines.h fdmdv2_plot.h fdmdv2_plot_scalar.h fdmdv2_plot_waterfall_linux.h fdmdv2_plot_scatter.h fdmdv2_plot_spectrum.h fdmdv2_pa_wrapper.h topFrame.h dlg_audiooptions.h diff --git a/fdmdv2/src/fdmdv2_plot_scatter.cpp b/fdmdv2/src/fdmdv2_plot_scatter.cpp index d41b2790..4b5b92b6 100644 --- a/fdmdv2/src/fdmdv2_plot_scatter.cpp +++ b/fdmdv2/src/fdmdv2_plot_scatter.cpp @@ -105,8 +105,8 @@ void PlotScatter::draw(wxAutoBufferedPaintDC& dc) max_xy = imag; } m_filter_max_xy = BETA*m_filter_max_xy + (1 - BETA)*2.5*max_xy; - if (m_filter_max_xy < 0.1) - m_filter_max_xy = 0.1; + if (m_filter_max_xy < 0.001) + m_filter_max_xy = 0.001; //printf("max_xy: %f m_filter_max_xy: %f\n", max_xy, m_filter_max_xy); x_scale = (float)m_rGrid.GetWidth()/m_filter_max_xy; -- 2.25.1