X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAirports%2Fcalc_loc.cxx;h=dd45e41c3820aa5e8205c61886e4ed3c7b584e10;hb=49677f512b8edaaf22c76761dbbf9c0850c79aad;hp=3ca71bef36b114948f5634f18b8337fed6dc4fb7;hpb=667e64e1ebc86a0c53112b92b53475898f315c36;p=flightgear.git diff --git a/src/Airports/calc_loc.cxx b/src/Airports/calc_loc.cxx index 3ca71bef3..dd45e41c3 100644 --- a/src/Airports/calc_loc.cxx +++ b/src/Airports/calc_loc.cxx @@ -12,8 +12,6 @@ #include #include -#include - #include @@ -44,7 +42,7 @@ int main( int argc, char **argv ) { } // calculate runway threshold point - double thresh_lat, thresh_lon, return_az; + double thresh_lat = 0.0, thresh_lon = 0.0, return_az = 0.0; geo_direct_wgs_84 ( 0.0, rwy_lat, rwy_lon, rwy_hdg, rwy_len / 2.0, &thresh_lat, &thresh_lon, &return_az ); cout << "Threshold = " << thresh_lat << "," << thresh_lon << endl; @@ -56,7 +54,7 @@ int main( int argc, char **argv ) { cout << "Distance = " << dist_m << endl; // back project that distance along the runway center line - double nloc_lat, nloc_lon; + double nloc_lat = 0.0, nloc_lon = 0.0; geo_direct_wgs_84 ( 0.0, thresh_lat, thresh_lon, rwy_hdg + 180.0, dist_m, &nloc_lat, &nloc_lon, &return_az ); printf("New localizer = %.6f %.6f\n", nloc_lat, nloc_lon );