mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
Fix for GCC
This commit is contained in:
parent
be5a6b40d2
commit
84c9d045c4
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <complex.h>
|
#include <complex.h>
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
#include <QTime>
|
#include <QTime>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
@ -107,7 +108,7 @@ void ADSBDemodSink::processOneSample(Complex &ci)
|
|||||||
}
|
}
|
||||||
m_magsqCount++;
|
m_magsqCount++;
|
||||||
|
|
||||||
sample = std::sqrtf(magsq);
|
sample = sqrtf(magsq);
|
||||||
m_sampleBuffer[m_sampleCount] = sample;
|
m_sampleBuffer[m_sampleCount] = sample;
|
||||||
m_sampleCount++;
|
m_sampleCount++;
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QSerialPortInfo>
|
#include <QSerialPortInfo>
|
||||||
@ -100,13 +101,13 @@ bool GS232ControllerGUI::handleMessage(const Message& message)
|
|||||||
GS232ControllerReport::MsgReportAzAl& azAl = (GS232ControllerReport::MsgReportAzAl&) message;
|
GS232ControllerReport::MsgReportAzAl& azAl = (GS232ControllerReport::MsgReportAzAl&) message;
|
||||||
if (azAl.getType() == GS232ControllerReport::AzAlType::TARGET)
|
if (azAl.getType() == GS232ControllerReport::AzAlType::TARGET)
|
||||||
{
|
{
|
||||||
ui->azimuth->setValue(std::round(azAl.getAzimuth()));
|
ui->azimuth->setValue(round(azAl.getAzimuth()));
|
||||||
ui->elevation->setValue(std::round(azAl.getElevation()));
|
ui->elevation->setValue(round(azAl.getElevation()));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ui->azimuthCurrentText->setText(QString("%1").arg(std::round(azAl.getAzimuth())));
|
ui->azimuthCurrentText->setText(QString("%1").arg(round(azAl.getAzimuth())));
|
||||||
ui->elevationCurrentText->setText(QString("%1").arg(std::round(azAl.getElevation())));
|
ui->elevationCurrentText->setText(QString("%1").arg(round(azAl.getElevation())));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user