Skip to content

Commit

Permalink
FW POS: remove setting of curr_sp to LOITER if next wp invalid
Browse files Browse the repository at this point in the history
Signed-off-by: Silvan Fuhrer <[email protected]>
  • Loading branch information
sfuhrer authored and dagar committed Dec 29, 2020
1 parent 772ff51 commit 9eaef07
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/modules/fw_pos_control_l1/FixedwingPositionControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,9 +734,6 @@ FixedwingPositionControl::control_position(const hrt_abstime &now, const Vector2
&& (dist_xy < 2.f * math::max(acc_rad, fabsf(pos_sp_curr.loiter_radius)))) {
// SETPOINT_TYPE_POSITION -> SETPOINT_TYPE_LOITER
position_sp_type = position_setpoint_s::SETPOINT_TYPE_LOITER;

} else if ((dist_xy < 2.f * math::max(acc_rad, fabsf(pos_sp_curr.loiter_radius))) && !pos_sp_next.valid) {
position_sp_type = position_setpoint_s::SETPOINT_TYPE_LOITER;
}

} else if (pos_sp_curr.type == position_setpoint_s::SETPOINT_TYPE_LOITER) {
Expand Down

0 comments on commit 9eaef07

Please sign in to comment.