From ce77e04690d755acd166edaf9087d52db871f417 Mon Sep 17 00:00:00 2001 From: Vivian Meazza Date: Mon, 28 May 2012 10:59:35 +0100 Subject: [PATCH] Revert "add Model movement" This reverts commit 7b8be5146ed2225828525a51a6167232a33e16b0. Too soon! Signed-off-by: Vivian Meazza --- Nasal/geo.nas | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Nasal/geo.nas b/Nasal/geo.nas index 7029c392e..c0d73fd6f 100644 --- a/Nasal/geo.nas +++ b/Nasal/geo.nas @@ -67,7 +67,7 @@ # # geo.normdeg() ... returns angle normalized to 0 <= angle < 360 # -# geo.put_model(, , [, [, [, [, [, ]]]]]); +# geo.put_model(, , [, [, [, [, ]]]]); # ... put model at location / with given elevation # (optional, default: surface). // are optional # and default to zero. @@ -260,15 +260,14 @@ var put_model = func(path, c, arg...) { } -var _put_model = func(path, lat, lon, elev_m = nil, hdg = 0, pitch = 0, roll = 0, speed = 0, vs=0, hs=0) { +var _put_model = func(path, lat, lon, elev_m = nil, hdg = 0, pitch = 0, roll = 0) { if (elev_m == nil) elev_m = elevation(lat, lon); if (elev_m == nil) die("geo.put_model(): cannot get elevation for " ~ lat ~ "/" ~ lon); fgcommand("add-model", var n = props.Node.new({ "path": path, "latitude-deg": lat, "longitude-deg": lon, "elevation-m": elev_m, - "heading-deg": hdg, "pitch-deg": pitch, "roll-deg": roll, "speed-kt": speed, - "vertical-fps": vs, "horizontal-fps": hs, + "heading-deg": hdg, "pitch-deg": pitch, "roll-deg": roll, })); return props.globals.getNode(n.getNode("property").getValue()); }