aboutsummaryrefslogtreecommitdiff
path: root/src/modules/att_pos_estimator_ekf
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-01-27 23:46:02 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-01-27 23:46:02 +0100
commit3f79057dd1a6e336c6138553268576345c3bf6e1 (patch)
tree5a0533cc401f381feda6339e60a3d026888e3f30 /src/modules/att_pos_estimator_ekf
parentdc3907fb36d06064e1f92b098b2b0bae860f4074 (diff)
downloadpx4-firmware-3f79057dd1a6e336c6138553268576345c3bf6e1.tar.gz
px4-firmware-3f79057dd1a6e336c6138553268576345c3bf6e1.tar.bz2
px4-firmware-3f79057dd1a6e336c6138553268576345c3bf6e1.zip
fw att pos estimator: fix output lat/lon conversion (introduced by changes in 58792c5ca6e42bc251dd3c92b0e79217ff5d5403)
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 8e88130e1..83145ac72 100644
--- a/src/modules/att_pos_estimator_ekf/KalmanNav.cpp
+++ b/src/modules/att_pos_estimator_ekf/KalmanNav.cpp
@@ -315,8 +315,8 @@ void KalmanNav::updatePublications()
_pos.timestamp = _pubTimeStamp;
_pos.time_gps_usec = _gps.timestamp_position;
_pos.valid = true;
- _pos.lat = getLatDegE7();
- _pos.lon = getLonDegE7();
+ _pos.lat = lat * M_RAD_TO_DEG;
+ _pos.lon = lon * M_RAD_TO_DEG;
_pos.alt = float(alt);
_pos.vel_n = vN;
_pos.vel_e = vE;