fix compiler issues

This commit is contained in:
Sven Czarnian
2021-12-15 16:55:07 +01:00
parent dbb3d6d557
commit a08ac9b244

View File

@@ -280,9 +280,9 @@ void Inbound::predictETA(const EuroScopePlugIn::CRadarTarget& target, const Euro
/* get the ground speed */
Velocity groundspeed;
if (0 == target.GetGS())
groundspeed = static_cast<double>(target.GetPosition().GetReportedGS()) * knot;
groundspeed = static_cast<float>(target.GetPosition().GetReportedGS()) * knot;
else
groundspeed = static_cast<double>(target.GetGS()) * knot;
groundspeed = static_cast<float>(target.GetGS()) * knot;
const auto& destination = gsl::at(this->m_arrivalRoute, this->m_nextStarWaypoint);
Length distanceToNextWaypoint = 0_m;