842
edits
Legoboyvdlp (talk | contribs) |
Legoboyvdlp (talk | contribs) (→Flightplan methods and variables: Add examples for insertWP and deleteWP) |
||
Line 41: | Line 41: | ||
; getPlanSize() : Returns number of waypoints | ; getPlanSize() : Returns number of waypoints | ||
; appendWP(leg) : Add a leg to the end of the flightplan. | ; appendWP(leg) : Add a leg to the end of the flightplan. | ||
; insertWP(leg, index) : Pass a leg object and its position. | ; insertWP(leg, index) : Pass a leg object and its position. Example: insertWP(leg, 1) --> leg becomes waypoint at index 1. | ||
; deleteWP(index) : Deletes the waypoint at specified index. | ; deleteWP(index) : Deletes the waypoint at specified index. Example: deleteWP(0) --> deletes first waypoint. | ||
; insertWPAfter() : | ; insertWPAfter() : | ||
; insertWaypoints(vector, index) : Pass a vector of waypoint objects, and the position to insert. | ; insertWaypoints(vector, index) : Pass a vector of waypoint objects, and the position to insert. |
edits