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