From 865e01e4465c22bb74b9441c071575f6507745b3 Mon Sep 17 00:00:00 2001 From: miguel <31931809+miguelvaca@users.noreply.github.com> Date: Thu, 28 Jul 2022 22:11:32 +1000 Subject: [PATCH] Update antenna.html --- antenna.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/antenna.html b/antenna.html index f9d5d67..81e3f99 100644 --- a/antenna.html +++ b/antenna.html @@ -113,7 +113,7 @@ } }, }; - this.current_type = this.antenna_types['order'][0]; + this.current_type = this.antenna_types['order'][3]; //console.log(this.current_type); } setAntennaType(antenna_type) { @@ -214,7 +214,7 @@ mode: true, axis: true, ground: true, - height: 0.0, + height: 50.0, w: "...", // dummy value, only type is important }; @@ -246,7 +246,7 @@ // Add an enable axes-helper button: gui.add(parameters, 'height', 0.0, 500.0) - .setValue(true) + .setValue(parameters['height']) .onChange(function(value){ //console.log(current_antenna_object['position']); current_antenna_object['position'].y = value; @@ -304,6 +304,7 @@ V = math.multiply(impedance, I); current_antenna_object = ant.getThreeObject3D(); + current_antenna_object['position'].y = parameters['height']; scene.add(current_antenna_object); }