Nasal Modules: Difference between revisions

Jump to navigation Jump to search
Line 23: Line 23:
|syntax = pathForHistory(minEdgeLengthM);
|syntax = pathForHistory(minEdgeLengthM);
|source =  
|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>.
|text = Get path for flight 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
|param1 = minEdgeLengthM
|param1text = Minimum length of segment in meters. Shorter segments will be collapsed. Default is 50.0, type double.
|param1text = Minimum length of segment in meters. Shorter segments will be collapsed. Default is 50.0, type double.
Line 30: Line 30:
var path = history.pathForHistory(1000);
var path = history.pathForHistory(1000);
foreach (var point; path) {
foreach (var point; path) {
     logprint(LOG_ALERT, "lat =", point.lat, " lon =", point.lon, " elevation =", point.elevation);
     logprint(LOG_ALERT, "lat = ", point.lat, " lon = ", point.lon, " elevation = ", point.elevation);
}
}
}}
}}
1,375

edits

Navigation menu