1
0
Fork 0

s/set_lonlat/set_latlon/

This commit is contained in:
mfranz 2009-01-15 00:39:51 +00:00
parent 64a22469ab
commit e8484502da

View file

@ -277,7 +277,7 @@ var set_targets = func(node) {
if (lon == nil or lat == nil) if (lon == nil or lat == nil)
die("target coords undefined"); die("target coords undefined");
var target = geo.Coord.new().set_lonlat(lon.getValue(), lat.getValue()); var target = geo.Coord.new().set_latlon(lat.getValue(), lon.getValue());
var dist = aircraft.distance_to(target); var dist = aircraft.distance_to(target);
var course = aircraft.course_to(target); var course = aircraft.course_to(target);
var angle = geo.normdeg(course - hdg); var angle = geo.normdeg(course - hdg);