Nasal Flightplan: Difference between revisions

(→‎Flightplan methods and variables: Fleshed out some more.)
Line 26: Line 26:


== Flightplan methods and variables ==
== Flightplan methods and variables ==
 
Notice that instead of passing a leg as parameter, a waypoint can be passed.
; getWP(index) : Returns the waypoint for specified index.
; getWP(index) : Returns the leg for specified index.
; currentWP() : Return current active waypoint.
; currentWP() : Return current active leg.
; nextWP() :  
; nextWP() :  
; getPlanSize() : Returns number of waypoints
; getPlanSize() : Returns number of waypoints
; appendWP(waypoint) : Add a waypoint to the end of the flightplan.
; appendWP(leg) : Add a leg to the end of the flightplan.
; insertWP(wp, index) : Pass a waypoint object and its position.
; insertWP(leg, index) : Pass a leg object and its position.
; deleteWP(index) : Deletes the waypoint at specified index.
; deleteWP(index) : Deletes the waypoint at specified index.
; insertWPAfter() :  
; insertWPAfter() :  
Line 38: Line 38:
; cleanPlan() : Clears all waypoints including destination and departure.
; cleanPlan() : Clears all waypoints including destination and departure.
; clearWPType(type) : Supply a type string, it will clear all waypoints of the type.
; clearWPType(type) : Supply a type string, it will clear all waypoints of the type.
; clone() : Return a copy of the fligthplan.
; clone() : Return a copy of the flightplan.
; pathGeod() :  
; pathGeod() :  
; finish() :  
; finish() :  
; indexOfWP() :
; indexOfWP() :
; destination : airport object as destination.
; destination : airport object as destination.
; destination_runway : rwy object as destination and its runway implicit.
; destination_runway : rwy object as destination and its airport implicit.
; departure : airport object as departure.
; departure : airport object as departure.
; departure_runway : rwy object as departure and its runway implicit.
; departure_runway : rwy object as departure and its airport implicit.
; id :
; id :
; sid : procedure object for SID.
; sid : procedure object for SID.
Line 54: Line 54:
; current : Index of current waypoint.
; current : Index of current waypoint.
; aircraftCategory : ICAO aircraft category.
; aircraftCategory : ICAO aircraft category.
; followLegTrackToFix :
; followLegTrackToFix : It controls whether the system will fly on an intersection course (and hence, different track) to the end of the leg, or make a corrective S-turn to get back on the leg track immediately it becomes possible.
; activate() :
; activate() :


574

edits