1,375
edits
| Line 7: | Line 7: | ||
= aircraft.nas = | = aircraft.nas = | ||
This module provide basic functions and classes for use in aircraft specific Nasal context. | This module provide basic functions and classes for use in aircraft specific Nasal context. | ||
== history() == | |||
{{Nasal doc | |||
|syntax = history(); | |||
|source = | |||
|text = Get flight history. This function returns a ghost object related to FGFlightHistory class. | |||
|example1 = | |||
var history = aircraft.history(); | |||
}} | |||
=== pathForHistory() === | |||
{{Nasal doc | |||
|syntax = pathForHistory(minEdgeLengthM); | |||
|source = | |||
|text = Get path for history. This function returns a vector of hashes as path points. Each hash contains the following keys: <code>lat</code>, <code>lon</code>, <code>elevation</code>. | |||
|param1 = minEdgeLengthM | |||
|param1text = Minimum length of segment in meters. Shorter segments will be collapsed. Default is 50.0, type double. | |||
|example1 = | |||
var history = aircraft.history(); | |||
var path = history.pathForHistory(1000); | |||
foreach (var point; path) { | |||
logprint(LOG_ALERT, "lat =", pont.lat, "lon =", pont.lon, "elevation =", pont.elevation); | |||
} | |||
}} | |||
= atc-chatter.nas = | = atc-chatter.nas = | ||
Simple sequenced ATC background chatter function | Simple sequenced ATC background chatter function | ||
edits