]> git.mxchange.org Git - simgear.git/blobdiff - simgear/metar/MetarStation.cpp
Use plib rad/degrees conversion constants.
[simgear.git] / simgear / metar / MetarStation.cpp
index a2122f6df2dd00a38b9c99f6f88dbc0adb4c5469..8aa9e1e78dfd2557ff19e8fe85cfa15139fa2d8d 100644 (file)
@@ -48,7 +48,7 @@ double CMetarStation::decodeDMS( char *b )
                // Direction (E W N S)
                if ( *b == 'W' || *b == 'S' ) r = -r;
        }
-       return r * DEG_TO_RAD;
+       return r * SGD_DEGREES_TO_RADIANS;
 }
 
 // Constructor
@@ -86,10 +86,10 @@ CMetarStation::CMetarStation(
        m_altitude = altitude;
        s = t; t = strchr( s, ';' ); *t = 0; t++;
        double ualtitude = atoi( s ) * FEET_TO_METER;
-       Point3D p( longitude, latitude, altitude+EQUATORIAL_RADIUS_M );
+       Point3D p( longitude, latitude, altitude+SG_EQUATORIAL_RADIUS_M );
        m_locationPolar = p;
        m_locationCart = sgPolarToCart3d( p );
-       Point3D up( ulongitude, ulatitude, ualtitude+EQUATORIAL_RADIUS_M );
+       Point3D up( ulongitude, ulatitude, ualtitude+SG_EQUATORIAL_RADIUS_M );
        m_upperLocationPolar = up;
        m_upperLocationCart = sgPolarToCart3d( up );
        s = t;