574
edits
m (→Leg methods and variables: added comment) |
(→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 | ; getWP(index) : Returns the leg for specified index. | ||
; currentWP() : Return current active | ; currentWP() : Return current active leg. | ||
; nextWP() : | ; nextWP() : | ||
; getPlanSize() : Returns number of waypoints | ; getPlanSize() : Returns number of waypoints | ||
; appendWP( | ; appendWP(leg) : Add a leg to the end of the flightplan. | ||
; insertWP( | ; 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 | ; 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 | ; 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 | ; 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() : | ||
edits