Nasal Flightplan: Difference between revisions

Jump to navigation Jump to search
There was an error in fp.insertWP. Added how to insert a waypoint at a defined place into the plan.
(Update {{func link}} form)
(There was an error in fp.insertWP. Added how to insert a waypoint at a defined place into the plan.)
Line 65: Line 65:
var wp = createWP(pos.lat(), pos.lon(), "EPICA");
var wp = createWP(pos.lat(), pos.lon(), "EPICA");


# manually insert a waypoint into the plan
# manually insert a waypoint at the end of the plan
fp.insertWP(fp.getPlanSize(), wp);
fp.insertWP(wp, fp.getPlanSize());
 
# manually insert a waypoint at a defined position (n) into the plan
fp.insertWP(wp, n);


# route along airways, and insert a whole bunch of waypoints
# route along airways, and insert a whole bunch of waypoints
29

edits

Navigation menu