diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-06-29 11:27:43 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-06-29 11:27:43 +0200 |
commit | 91bba668f670db7cec916966d3c53d3b25ac7061 (patch) | |
tree | 7344d652c0c42940fffb0766ac3270d599f033b5 /src/modules | |
parent | 336fc2fcf5020f296ec760ca44c2c706b57c61ec (diff) | |
download | px4-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')
-rw-r--r-- | src/modules/ekf_att_pos_estimator/estimator_utilities.h | 4 |
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 { |