From d9fbdd5269c53cc196b3a7fc0c18077d6060f06d Mon Sep 17 00:00:00 2001 From: F K <54195004+fredjk-gh@users.noreply.github.com> Date: Sat, 26 Feb 2022 15:48:49 -0500 Subject: [PATCH] Close Ring Proximity criteria: Prevent it from triggering on a belt (#56) I actually had this recently, which is how I found it. --- ObservatoryExplorer/DefaultCriteria.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ObservatoryExplorer/DefaultCriteria.cs b/ObservatoryExplorer/DefaultCriteria.cs index 5dc5579..12a0232 100644 --- a/ObservatoryExplorer/DefaultCriteria.cs +++ b/ObservatoryExplorer/DefaultCriteria.cs @@ -68,7 +68,7 @@ namespace Observatory.Explorer foreach (var ring in parent.Rings) { var separation = Math.Min(Math.Abs(scan.SemiMajorAxis - ring.OuterRad), Math.Abs(ring.InnerRad - scan.SemiMajorAxis)); - if (separation < scan.Radius * 10) + if (separation < scan.Radius * 10 && !ring.Name.Contains("Belt")) { results.Add("Close Ring Proximity", $"Orbit: {scan.SemiMajorAxis / 1000:N0}km, Radius: {scan.Radius / 1000:N0}km, Distance from ring: {separation / 1000:N0}km"); }