aboutsummaryrefslogtreecommitdiff
path: root/src/modules/ekf_att_pos_estimator
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-06-29 11:27:43 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-06-29 11:27:43 +0200
commit91bba668f670db7cec916966d3c53d3b25ac7061 (patch)
tree7344d652c0c42940fffb0766ac3270d599f033b5 /src/modules/ekf_att_pos_estimator
parent336fc2fcf5020f296ec760ca44c2c706b57c61ec (diff)
downloadpx4-firmware-91bba668f670db7cec916966d3c53d3b25ac7061.tar.gz
px4-firmware-91bba668f670db7cec916966d3c53d3b25ac7061.tar.bz2
px4-firmware-91bba668f670db7cec916966d3c53d3b25ac7061.zip
Define earth radius as double, as our calculations relying on it need double precision.
Diffstat (limited to 'src/modules/ekf_att_pos_estimator')
-rw-r--r--src/modules/ekf_att_pos_estimator/estimator_utilities.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/ekf_att_pos_estimator/estimator_utilities.h b/src/modules/ekf_att_pos_estimator/estimator_utilities.h
index 97f22b453..d47568b62 100644
--- a/src/modules/ekf_att_pos_estimator/estimator_utilities.h
+++ b/src/modules/ekf_att_pos_estimator/estimator_utilities.h
@@ -8,8 +8,8 @@
#define rad2deg 57.295780f
#define pi 3.141592657f
#define earthRate 0.000072921f
-#define earthRadius 6378145.0f
-#define earthRadiusInv 1.5678540e-7f
+#define earthRadius 6378145.0
+#define earthRadiusInv 1.5678540e-7
class Vector3f
{