mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Fix gcc warnings
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkReply>
|
||||
@@ -181,9 +183,9 @@ bool GS232Controller::getOnTarget() const
|
||||
{
|
||||
float targetAziumth, targetElevation;
|
||||
m_settings.calcTargetAzEl(targetAziumth, targetElevation);
|
||||
float readTolerance = m_settings.m_tolerance + 0.5f;
|
||||
bool onTarget = (abs(m_currentAzimuth - targetAziumth) < readTolerance)
|
||||
&& (abs(m_currentElevation - targetElevation) < readTolerance);
|
||||
float readTolerance = m_settings.m_tolerance + 0.0f;
|
||||
bool onTarget = (std::fabs(m_currentAzimuth - targetAziumth) < readTolerance)
|
||||
&& (std::fabs(m_currentElevation - targetElevation) < readTolerance);
|
||||
return onTarget;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user