1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-25 04:53:27 -04:00

Corrected channel analyzer decimation and incorrect workarounds

This commit is contained in:
f4exb
2015-07-16 22:31:12 +02:00
parent 93aa852897
commit 7ee44dfd27
5 changed files with 22 additions and 20 deletions
+3 -5
View File
@@ -243,13 +243,11 @@ void GLScopeGUI::setTimeScaleDisplay()
{
m_sampleRate = m_glScope->getSampleRate();
qreal t = (m_glScope->getTraceSize() * 1.0 / m_sampleRate) / (qreal)m_timeBase;
/*
std::cerr << "GLScopeGUI::setTimeScaleDisplay: sample rate: "
<< m_glScope->getSampleRate()
/*std::cerr << "GLScopeGUI::setTimeScaleDisplay: sample rate: "
<< m_sampleRate
<< " traceSize: " << m_glScope->getTraceSize()
<< " timeBase: " << m_timeBase
<< " glScope @" << m_glScope << std::endl;
*/
<< " t: " << t << std::endl;*/
if(t < 0.000001)
ui->timeText->setText(tr("%1\nns").arg(t * 1000000000.0));
else if(t < 0.001)