2,733
edits
Red Leader (talk | contribs) m (→Documentation: Name typos) |
Red Leader (talk | contribs) (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> | ||