mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 11:08:54 +08:00
navigator only accept waypoints if !landed
This commit is contained in:
committed by
Lorenz Meier
parent
0cbb2c7f23
commit
2eea0af843
@@ -128,7 +128,9 @@ MissionBlock::is_mission_item_reached()
|
||||
|
||||
hrt_abstime now = hrt_absolute_time();
|
||||
|
||||
if (!_waypoint_position_reached) {
|
||||
if ((_navigator->get_vstatus()->condition_landed == false)
|
||||
&& !_waypoint_position_reached) {
|
||||
|
||||
float dist = -1.0f;
|
||||
float dist_xy = -1.0f;
|
||||
float dist_z = -1.0f;
|
||||
|
||||
Reference in New Issue
Block a user