head 1.3; access; symbols pkgsrc-2018Q1:1.2.0.16 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.14 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.12 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.8 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.6 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.4 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.2 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.1.0.2 pkgsrc-2016Q2-base:1.1; locks; strict; comment @// @; 1.3 date 2018.04.05.16.49.16; author bouyer; state dead; branches; next 1.2; commitid sNYK9SxDdyX61hxA; 1.2 date 2016.07.18.14.23.46; author bouyer; state Exp; branches; next 1.1; commitid LYaxli20aOXBkOez; 1.1 date 2016.06.16.16.03.55; author bouyer; state Exp; branches; next ; commitid curcFSABcOTnTHaz; desc @@ 1.3 log @Update to 20180405. Changes: support sparse polars with automatic interpolation ADD cursor bar on the plot to show where we are in time Add option cursor route enable/disable Add wind barbs on the weather route. Updated translations Lots of UI improvements and general bug fixes @ text @$NetBSD: patch-src_RouteMap.cpp,v 1.2 2016/07/18 14:23:46 bouyer Exp $ --- src/RouteMap.cpp.orig 2016-07-16 16:02:32.000000000 +0200 +++ src/RouteMap.cpp 2016-07-18 15:51:20.000000000 +0200 @@@@ -546,7 +546,7 @@@@ VB = polar.Speed(H, VW); /* failed to determine speed.. */ - if(isnan(B) || isnan(VB)) { + if(std::isnan(B) || std::isnan(VB)) { // when does this hit?? printf("polar failed bad! %f %f %f %f\n", W, VW, B, VB); configuration.polar_failed = true; @@@@ -662,7 +662,7 @@@@ B = W + H; /* rotated relative to true wind */ /* test to avoid extra computations related to backtracking */ - if(!isnan(bearing1)) { + if(!std::isnan(bearing1)) { double bearing3 = heading_resolve(B); if((bearing1 > bearing2 && bearing3 > bearing2 && bearing3 < bearing1) || (bearing1 < bearing2 && (bearing3 > bearing2 || bearing3 < bearing1))) { @@@@ -2089,7 +2089,7 @@@@ /* did we tack thru the wind? apply penalty */ bool tacked = false; - if(!isnan(dt) && p->parent_heading*H < 0 && fabs(p->parent_heading - H) < 180) { + if(!std::isnan(dt) && p->parent_heading*H < 0 && fabs(p->parent_heading - H) < 180) { tacked = true; dt += configuration.TackingTime; #if 0 @@@@ -2098,7 +2098,7 @@@@ #endif } - if(!isnan(dt) && dt < mindt) { + if(!std::isnan(dt) && dt < mindt) { mindt = dt; minH = H; endp = p; @ 1.2 log @Update to 20160716. Changes since previous: bug fixes, improved error messages, updates for newer draw plugin. @ text @d1 1 a1 1 $NetBSD: patch-src_RouteMap.cpp,v 1.1 2016/06/16 16:03:55 bouyer Exp $ @ 1.1 log @Update to version 20160611 Changes since previous: - update for the new grib plugin - support crossover regions - updated translations - bug fixes @ text @d1 1 a1 1 $NetBSD: $ d3 3 a5 3 --- src/RouteMap.cpp.orig 2016-06-13 18:14:41.000000000 +0200 +++ src/RouteMap.cpp 2016-06-13 18:17:23.000000000 +0200 @@@@ -550,7 +550,7 @@@@ d11 2 a13 2 return false; //B = VB = 0; } d23 1 a23 1 @@@@ -2092,7 +2092,7 @@@@ d32 1 a32 1 @@@@ -2101,7 +2101,7 @@@@ @