zlsa / atc

https://openscope.co/
342 stars 107 forks source link

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

Closed erikquinn closed 7 years ago

erikquinn commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

The star command should:

The reroute command should:

erikquinn commented 7 years ago

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.