Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve GA detection flexibility and robustness. #321

Merged
merged 3 commits into from
Feb 20, 2023

Conversation

figuetbe
Copy link
Collaborator

Here are two minor changes that improve GA detection flexibility and robustness:

  • The aligned_on_ils function can now accept parameters for max_b_diff and min_duration_sec
  • A new check has been added to the GA detection algo, requiring a trajectory to align with an ILS at least twice before being considered a potential GA.

traffic/algorithms/navigation.py Outdated Show resolved Hide resolved
traffic/algorithms/navigation.py Outdated Show resolved Hide resolved
traffic/algorithms/navigation.py Outdated Show resolved Hide resolved
return

first_attempt = next(self.aligned_on_ils(airport, **kwargs), None)
first_attempt = next(attempts, None)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here first_attempt is always None since it has been consumed above

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it has yet been consumed...

traffic/algorithms/navigation.py Outdated Show resolved Hide resolved
@xoolive xoolive merged commit 0cddeba into xoolive:master Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants