User:Necolatis/terrain detection from nasal: Difference between revisions

(Second example)
Line 5: Line 5:
<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
var myPos = geo.aircraft_position();
var myPos = geo.aircraft_position();
var otherPos = geo.aircraft_position().apply_course_distance(100, 20);# another plane 20 miles out
var otherPos = geo.aircraft_position().apply_course_distance(100, 20000);# another plane 20 Km out


# Check for terrain between own aircraft and other:
# Check for terrain between own aircraft and other:
574

edits