RT2_Cuboid_demo / Mbed 2 deprecated nucf446-cuboid-balance1_strong

Dependencies:   mbed

Revision:
26:017198f20b5c
Parent:
25:13af44aeabbd
Child:
28:fc53b2d62a1e
--- a/GPA.cpp	Mon Oct 15 17:35:11 2018 +0000
+++ b/GPA.cpp	Mon Oct 15 17:46:04 2018 +0000
@@ -123,7 +123,7 @@
     pi2 = 2.0*pi;
     pi2Ts = pi2*(double)Ts;
     piDiv2 = pi/2.0;
-
+    
     sU = (double*)malloc(3*sizeof(double));
     sY = (double*)malloc(3*sizeof(double));
     reset();
@@ -175,8 +175,6 @@
     pi2 = 2.0*pi;
     pi2Ts = pi2*(double)Ts;
     piDiv2 = pi/2.0;
-    
-    scaleH = 2.0;
 
     sU = (double*)malloc(3*sizeof(double));
     sY = (double*)malloc(3*sizeof(double));
@@ -194,6 +192,7 @@
     ii = 1; // iterating through desired frequency points
     jj = 1; // iterating through measurement points w.r.t. reachable frequency
     scaleG = 0.0;
+    scaleH = 2.0;
     wk = 0.0;
     cr = 0.0;
     ci = 0.0;