s/set_lonlat/set_latlon/
This commit is contained in:
parent
64a22469ab
commit
e8484502da
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue