[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [5252] fix a constant initializer that was declared
From: |
antoine drouin |
Subject: |
[paparazzi-commits] [5252] fix a constant initializer that was declared static and made gcc yell |
Date: |
Fri, 06 Aug 2010 08:47:19 +0000 |
Revision: 5252
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5252
Author: poine
Date: 2010-08-06 08:47:19 +0000 (Fri, 06 Aug 2010)
Log Message:
-----------
fix a constant initializer that was declared static and made gcc yell
Modified Paths:
--------------
paparazzi3/trunk/sw/airborne/math/pprz_geodetic_double.c
Modified: paparazzi3/trunk/sw/airborne/math/pprz_geodetic_double.c
===================================================================
--- paparazzi3/trunk/sw/airborne/math/pprz_geodetic_double.c 2010-08-06
08:46:38 UTC (rev 5251)
+++ paparazzi3/trunk/sw/airborne/math/pprz_geodetic_double.c 2010-08-06
08:47:19 UTC (rev 5252)
@@ -127,9 +127,9 @@
double gc_of_gd_lat_d(double gd_lat, double hmsl) {
- static const double a = 6378137.0; /* earth semimajor axis in
meters */
- static const double f = 1./298.257223563; /* reciprocal flattening
*/
- static const double c2 = (1-f)*(1-f);
+ const double a = 6378137.0; /* earth semimajor axis in meters */
+ const double f = 1./298.257223563; /* reciprocal flattening */
+ const double c2 = (1.-f)*(1.-f);
/* geocentric latitude at the planet surface */
double ls = atan(c2*tan(gd_lat));
return atan2(hmsl*sin(gd_lat) + a*sin(ls), hmsl*cos(gd_lat) + a*cos(ls));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [5252] fix a constant initializer that was declared static and made gcc yell,
antoine drouin <=