mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 15:00:35 +08:00
navigator: init map projection on home pos update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user