Commit 11ffc57f authored by Vladimir Ermakov's avatar Vladimir Ermakov
Browse files

Merge pull request #533 from mavlink/kinetic-isnan-fix

Fix for kinetic std::isnan.
parents ab26e8c9 e36610fb
......@@ -135,7 +135,7 @@ private:
float eph = (raw_gps.eph != UINT16_MAX) ? raw_gps.eph / 1E2F : NAN;
float epv = (raw_gps.epv != UINT16_MAX) ? raw_gps.epv / 1E2F : NAN;
if (!isnan(eph)) {
if (!std::isnan(eph)) {
const double hdop = eph;
// From nmea_navsat_driver
......@@ -301,12 +301,12 @@ private:
stat.addf("Satellites visible", "%zd", satellites_visible);
stat.addf("Fix type", "%d", fix_type);
if (!isnan(eph))
if (!std::isnan(eph))
stat.addf("EPH (m)", "%.2f", eph);
else
stat.add("EPH (m)", "Unknown");
if (!isnan(epv))
if (!std::isnan(epv))
stat.addf("EPV (m)", "%.2f", epv);
else
stat.add("EPV (m)", "Unknown");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment