mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 12:13:33 +08:00
Handle takeoff waypoints for rover
Fix
This commit is contained in:
committed by
Lorenz Meier
parent
1d1fbdb1d3
commit
d59ba2032f
@@ -174,6 +174,13 @@ MissionBlock::is_mission_item_reached()
|
|||||||
_waypoint_position_reached = true;
|
_waypoint_position_reached = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else if (_mission_item.nav_cmd == NAV_CMD_TAKEOFF
|
||||||
|
&& _navigator->get_vstatus()->vehicle_type == vehicle_status_s::VEHICLE_TYPE_ROVER) {
|
||||||
|
/* for takeoff mission items use the parameter for the takeoff acceptance radius */
|
||||||
|
if (dist_xy >= 0.0f && dist_xy <= _navigator->get_acceptance_radius()) {
|
||||||
|
_waypoint_position_reached = true;
|
||||||
|
}
|
||||||
|
|
||||||
} else if (_mission_item.nav_cmd == NAV_CMD_TAKEOFF) {
|
} else if (_mission_item.nav_cmd == NAV_CMD_TAKEOFF) {
|
||||||
/* for takeoff mission items use the parameter for the takeoff acceptance radius */
|
/* for takeoff mission items use the parameter for the takeoff acceptance radius */
|
||||||
if (dist >= 0.0f && dist <= _navigator->get_acceptance_radius()
|
if (dist >= 0.0f && dist <= _navigator->get_acceptance_radius()
|
||||||
|
|||||||
Reference in New Issue
Block a user