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

Using STAR command to change aircraft's assigned STAR throws errors #730

Closed
erikquinn opened this issue Nov 16, 2016 · 4 comments
Closed

Comments

@erikquinn
Copy link
Collaborator

erikquinn commented Nov 16, 2016

image

Reproducible by taking any aircraft on a star and assigning them a new one with star entryPoint.starName. Note that using the reroute function does not seem to have the same problem: rr entryPoint.starName.airportICAO.

For example, at KSFO:
star QUINN.BDEGA2 (no good, intended use)
star QUINN.BDEGA2.KSFO (no good, not intended use)
rr QUINN.BDEGA2.KSFO (works)
rr YOSEM.YOSEM3.KSFO THEN star QUINN.BDEGA2 (works)

There seem to be problems with initializing the properties of the waypoints under certain conditions. For example, running the last example will "work", but the aircraft will have null as its assigned altitude and speed, which causes an unscheduled descent and other issues.

@n8rzz
Copy link
Contributor

n8rzz commented Nov 16, 2016

Hey, I left that breadcrumb. The second argument that is getting passed to clamp() is not a number. I've added this to my fork and will investigate further. I may have this fixed already with v3.1.0 but maybe not.

Thanks for the use cases!

@n8rzz
Copy link
Contributor

n8rzz commented Nov 16, 2016

actually, let me ask you, what is supposed to happen with those two commands star and rr?

What happens (or what is supposed to happen) to any previous Legs/Waypoints? What happens with this new route and where does it go within the existing group of Legs/Waypoints.

@erikquinn
Copy link
Collaborator Author

The star command should:

  • if no STAR yet assigned, append a new Leg at the end of fms.legs, containing the specified STAR
  • if the last Leg in the fms that has a type of "star", replace it with a new Leg of the specified STAR

The reroute command should:

  • Wipe all waypoints out of the fms and re-generate them according to the provided route

@erikquinn
Copy link
Collaborator Author

The ATC repository is being migrated to it's new home at https://github.com/openscope/openscope,
and thus, all issues are being closed. If this is still an issue with the latest version of the sim
(accessible at http://www.openscope.co), or is a feature you still think we are lacking,
please reopen the issue at the new repo.

Please note that the vast majority of these issues have been copied to the new repository, or else are covered by other issues created there. See the below screenshot for what it looks like when your issue is known in the new repo:

image

Thank you!

Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants