Merge branch 'mpc_local_pos' into mpc_rc

This commit is contained in:
Anton Babushkin 2014-04-23 15:25:13 +02:00
commit dc8a0b291a
1 changed files with 7 additions and 0 deletions

View File

@ -733,6 +733,13 @@ Navigator::task_main()
}
}
/* check if waypoint has been reached in MISSION, RTL and LAND modes */
if (myState == NAV_STATE_MISSION || myState == NAV_STATE_RTL || myState == NAV_STATE_LAND) {
if (check_mission_item_reached()) {
on_mission_item_reached();
}
}
} else {
/* navigator shouldn't act */
dispatch(EVENT_NONE_REQUESTED);