diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-04-24 15:59:49 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-04-24 15:59:49 +0200 |
commit | fbcb248bc3a91d1c26f6f47a2a46badd2d8a58f9 (patch) | |
tree | f1172e01e5700d72561e32c85bd3ccbc75a3093e | |
parent | 6517c201f701da97acde1d7e3cc72712b9a1613c (diff) | |
download | px4-firmware-fbcb248bc3a91d1c26f6f47a2a46badd2d8a58f9.tar.gz px4-firmware-fbcb248bc3a91d1c26f6f47a2a46badd2d8a58f9.tar.bz2 px4-firmware-fbcb248bc3a91d1c26f6f47a2a46badd2d8a58f9.zip |
navigator: init map projection on home pos update
-rw-r--r-- | src/modules/navigator/navigator_main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index d4d23396a..b7cf49cfa 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -625,6 +625,7 @@ Navigator::task_main() parameters_update(); global_position_update(); home_position_update(); + map_projection_init(_home_pos.lat, _home_pos.lon); navigation_capabilities_update(); offboard_mission_update(_vstatus.is_rotary_wing); onboard_mission_update(); @@ -816,6 +817,7 @@ Navigator::task_main() if (fds[2].revents & POLLIN) { home_position_update(); // XXX check if home position really changed + map_projection_init(_home_pos.lat, _home_pos.lon); dispatch(EVENT_HOME_POSITION_CHANGED); } |