mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 22:51:35 +08:00
Merge branch 'mpc_local_pos' into mpc_rc
This commit is contained in:
@@ -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 {
|
} else {
|
||||||
/* navigator shouldn't act */
|
/* navigator shouldn't act */
|
||||||
dispatch(EVENT_NONE_REQUESTED);
|
dispatch(EVENT_NONE_REQUESTED);
|
||||||
|
|||||||
Reference in New Issue
Block a user