-
Notifications
You must be signed in to change notification settings - Fork 1
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
Errors thrown when Leg
construction fails
#175
Comments
@n8rzz FYI: I pushed a small start to this to the |
@erikquinn so #154 shouldn't even be a thing? Am I reading that correctly, every airport file should define |
It depends on the type of procedure... If it starts or ends at an airport, it should have a runway section (SIDs/STARs/IAPs, but not airways). If it ends at the airport, it should have an entryPoint, if it begins at the airport it should have an exitPoint. All procedures should have a body section. |
yeah, I get what you're saying, we're on the same page there. so what do we do about the airport files that current have only |
|
To Reproduce:
At KJFK, issue command
caf cvs w 4L
to an aircraft filed on theDEEZZ4
. Will produce an error of:RouteModel.js:46 Invalid data type passed to RouteModel. Expected a string but received [object Object]
This is due to it trying to construct a new
RouteModel
from the contents ofLeg.route
, which it expects to be a simple route string, but in this case, it was already an instance ofRouteModel
, so the construction fails. Thus, theLeg
construction subsequently fails as well.With the failure of the instantiation of the new
Leg
, the waypoints are not generated either. Thus, whenaircraft.fms.currentWaypoint
oraircraft.fms.altitudeForCurrentWaypoint()
are called, there are noWaypoint
s within the currentLeg
, so the app goes berserk with errors.The text was updated successfully, but these errors were encountered: