mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 07:41:35 +08:00
Merge branch 'fw_autoland' into fw_autoland_att_tecs
This commit is contained in:
@@ -771,7 +771,7 @@ FixedwingPositionControl::control_position(const math::Vector2f ¤t_positio
|
|||||||
// target_bearing = get_bearing_to_next_waypoint(prev_wp.getX(), prev_wp.getY(), next_wp.getX(), next_wp.getY());
|
// target_bearing = get_bearing_to_next_waypoint(prev_wp.getX(), prev_wp.getY(), next_wp.getX(), next_wp.getY());
|
||||||
// } else {
|
// } else {
|
||||||
|
|
||||||
if (!land_noreturn)
|
if (!land_noreturn) //set target_bearing in first occurrence
|
||||||
target_bearing = _att.yaw;
|
target_bearing = _att.yaw;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
@@ -779,8 +779,7 @@ FixedwingPositionControl::control_position(const math::Vector2f ¤t_positio
|
|||||||
|
|
||||||
_l1_control.navigate_heading(target_bearing, _att.yaw, ground_speed);
|
_l1_control.navigate_heading(target_bearing, _att.yaw, ground_speed);
|
||||||
|
|
||||||
if (altitude_error > -5.0f)
|
land_noreturn = true;
|
||||||
land_noreturn = true;
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user