aboutsummaryrefslogtreecommitdiff
path: root/src/modules/att_pos_estimator_ekf
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2014-03-17 23:58:00 +0400
committerAnton Babushkin <anton.babushkin@me.com>2014-03-17 23:58:00 +0400
commitc266124099fe67dcff5d5f3deeef37acebdc1695 (patch)
tree70abb548532ca6c02ba8111bbd265fde0963095e /src/modules/att_pos_estimator_ekf
parent2f7303f2ddebedacaa92b287ee70ecea0e2d5baf (diff)
downloadpx4-firmware-c266124099fe67dcff5d5f3deeef37acebdc1695.tar.gz
px4-firmware-c266124099fe67dcff5d5f3deeef37acebdc1695.tar.bz2
px4-firmware-c266124099fe67dcff5d5f3deeef37acebdc1695.zip
vehicle_local_position: use double for ref_lat and ref_lon instead of int32, fix related apps
Diffstat (limited to 'src/modules/att_pos_estimator_ekf')
-rw-r--r--src/modules/att_pos_estimator_ekf/KalmanNav.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/att_pos_estimator_ekf/KalmanNav.cpp b/src/modules/att_pos_estimator_ekf/KalmanNav.cpp
index a4d5560c7..03e6021dc 100644
--- a/src/modules/att_pos_estimator_ekf/KalmanNav.cpp
+++ b/src/modules/att_pos_estimator_ekf/KalmanNav.cpp
@@ -341,8 +341,8 @@ void KalmanNav::updatePublications()
_localPos.xy_global = true;
_localPos.z_global = true;
_localPos.ref_timestamp = _pubTimeStamp;
- _localPos.ref_lat = getLatDegE7();
- _localPos.ref_lon = getLonDegE7();
+ _localPos.ref_lat = lat * M_RAD_TO_DEG;
+ _localPos.ref_lon = lon * M_RAD_TO_DEG;
_localPos.ref_alt = 0;
_localPos.landed = landed;