Nasal Flightplan: Difference between revisions

Jump to navigation Jump to search
Move commented-out stuff from Nasal library to here for now
m (→‎Documentation: Name typos)
(Move commented-out stuff from Nasal library to here for now)
Line 74: Line 74:
# segment is a vector of waypoints now
# segment is a vector of waypoints now
fp.insertWaypoints(segment, fp.getPlanSize());
fp.insertWaypoints(segment, fp.getPlanSize());
</syntaxhighlight>
=== aircraft.history() (3.2+) ===
Function to expose flight history as aircraft.history()
<syntaxhighlight lang="nasal">
var hist = aircraft.history();
# get history of aircraft position/orientation collapsing
# nodes with a distance smaller than the given minimum
# edge length
debug.dump( hist.pathForHistory(<minimum-edge-length-meter>) );
</syntaxhighlight>
</syntaxhighlight>


Navigation menu