From 27f87d40cc6521698399b9257a64390e7f92724c Mon Sep 17 00:00:00 2001 From: drowe67 Date: Mon, 10 Aug 2015 11:07:05 +0000 Subject: [PATCH] turned waterfall agc back on to get pretty colours git-svn-id: https://svn.code.sf.net/p/freetel/code@2270 01035d8c-6547-0410-b346-abe4f91aad63 --- fdmdv2-dev/src/fdmdv2_plot_waterfall.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdmdv2-dev/src/fdmdv2_plot_waterfall.cpp b/fdmdv2-dev/src/fdmdv2_plot_waterfall.cpp index 4a8b4473..d3a29abd 100644 --- a/fdmdv2-dev/src/fdmdv2_plot_waterfall.cpp +++ b/fdmdv2-dev/src/fdmdv2_plot_waterfall.cpp @@ -356,8 +356,8 @@ void PlotWaterfall::plotPixelData() m_max_mag = BETA*m_max_mag + (1 - BETA)*max_mag; m_min_mag = max_mag - 20.0; //printf("max_mag: %f m_max_mag: %f\n", max_mag, m_max_mag); - intensity_per_dB = (float)256 /(MAX_MAG_DB - MIN_MAG_DB); - //intensity_per_dB = (float)256 /(m_max_mag - m_min_mag); + //intensity_per_dB = (float)256 /(MAX_MAG_DB - MIN_MAG_DB); + intensity_per_dB = (float)256 /(m_max_mag - m_min_mag); spec_index_per_px = ((float)(MAX_F_HZ)/(float)m_modem_stats_max_f_hz)*(float)MODEM_STATS_NSPEC / (float) m_rGrid.GetWidth(); /* -- 2.25.1