Skip to content

Commit

Permalink
ShipOps: Small Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lthall committed Aug 9, 2024
1 parent bf246f1 commit 32261bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduCopter/mode_ship_ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ void ModeShipOperation::run()
if (is_positive(keep_out_radius)) {
bool deck_radius_valid = is_positive(deck_radius);
bool approach_arc_valid = wrap_PI(radians(perch_angle) - koz_center_heading_rad) >= keep_out_angle_rad / 2.0;
if (keep_out_zone_valid ~= deck_radius_valid && approach_arc_valid) {
if (keep_out_zone_valid != deck_radius_valid && approach_arc_valid) {
if (!deck_radius_valid) {
GCS_SEND_TEXT(MAV_SEVERITY_WARNING, "Invalid KOZ: KOZ_DKR must be positive");
}
Expand Down

0 comments on commit 32261bb

Please sign in to comment.