diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-04-25 13:57:06 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-04-25 13:57:06 +0200 |
commit | 08bc777208a8510da7cd91fab5059ffa8bd14150 (patch) | |
tree | 7fc056ffaf195cb09e7ded8bbc7b5cb438fbcb97 /src | |
parent | a467bd61c1d83a97680a3f01ae1f51989c974982 (diff) | |
download | px4-firmware-08bc777208a8510da7cd91fab5059ffa8bd14150.tar.gz px4-firmware-08bc777208a8510da7cd91fab5059ffa8bd14150.tar.bz2 px4-firmware-08bc777208a8510da7cd91fab5059ffa8bd14150.zip |
pos estimator inav: use map_projection_reference to set local pos reference lat lon
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/position_estimator_inav/position_estimator_inav_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/position_estimator_inav/position_estimator_inav_main.c b/src/modules/position_estimator_inav/position_estimator_inav_main.c index e88493a5e..91642e5b9 100644 --- a/src/modules/position_estimator_inav/position_estimator_inav_main.c +++ b/src/modules/position_estimator_inav/position_estimator_inav_main.c @@ -626,8 +626,8 @@ int position_estimator_inav_thread_main(int argc, char *argv[]) z_est[0] = 0.0f; y_est[2] = accel_NED[1]; - local_pos.ref_lat = lat; - local_pos.ref_lon = lon; + map_projection_reference(&local_pos.ref_lat, &local_pos.ref_lon); + local_pos.ref_alt = alt; local_pos.ref_timestamp = t; } |