2011

Dependencies:   mbed FastPWM

Revision:
220:153c6f5e1c44
Parent:
219:3cb6bd063f56
Child:
221:881c895e3617
Child:
222:5e19903365a5
Child:
223:e26830fbaffd
diff -r 3cb6bd063f56 -r 153c6f5e1c44 main.cpp
--- a/main.cpp	Mon Dec 28 01:32:33 2020 +0000
+++ b/main.cpp	Mon Dec 28 01:47:51 2020 +0000
@@ -1,4 +1,4 @@
-//201228_1
+//201228_1_good
 #include "mbed.h"
 #include "FastPWM.h"
 #include "INIT_HW.h"
@@ -1034,9 +1034,9 @@
                 ind = ind + 1;
             }
 //            input_NN[ind] = torq.sen / 10000.0f * 8.0f + 0.5f;
-//            input_NN[ind] = torq.sen / 10000.0f + 0.5f;
-//            ind = ind + 1;
-            for(int i=0; i<numfuture_f; i++) {
+            input_NN[ind] = torq.sen / 10000.0f + 0.5f;
+            ind = ind + 1;
+            for(int i=0; i<numfuture_f-1; i++) {
 //                input_NN[ind] = (f_future[time_interval*i+time_interval] - torq.sen)/10000.0f * 8.0f + 0.5f;
 //                input_NN[ind] = (f_future[time_interval*i+time_interval] - torq.sen)/10000.0f + 0.5f;
 //                input_NN[ind] = (f_future[time_interval*i+time_interval])/10000.0f*8.0f+0.5f;