Removed 300 foot minimum altitude threshold.

This commit is contained in:
John Wiseman 2020-07-01 18:40:53 -07:00
parent df8837600a
commit 6079f238cd

View File

@ -289,14 +289,12 @@
(defn circling? [ac config] (defn circling? [ac config]
(and (> (geo/flight-curviness (filter #(not (:gnd? %)) (:history ac))) (and (> (geo/flight-curviness (filter #(not (:gnd? %)) (:history ac)))
(:curviness-threshold-degrees config)) (:curviness-threshold-degrees config))))
(> (:alt ac) 300)))
(defn circling2? [ac config] (defn circling2? [ac config]
(let [relevant-history (filter #(not (:gnd? %)) (:history ac))] (let [relevant-history (filter #(not (:gnd? %)) (:history ac))]
(and (> (geo/flight-curviness relevant-history) (:curviness-threshold-degrees config)) (and (> (geo/flight-curviness relevant-history) (:curviness-threshold-degrees config)))))
(> (:alt ac) 300))))
;; Returns a vector of two elements, ;; Returns a vector of two elements,