LIGHT2

Dependencies:   FastPWM mbed

Revision:
150:b0ac087118cc
Parent:
149:b273ae9cec75
Child:
156:1f45755a3fc7
diff -r b273ae9cec75 -r b0ac087118cc CAN/function_CAN.cpp
--- a/CAN/function_CAN.cpp	Fri Oct 09 08:17:17 2020 +0000
+++ b/CAN/function_CAN.cpp	Fri Oct 09 12:49:12 2020 +0000
@@ -794,8 +794,8 @@
         input_NN[ind] = torq.sen / 10000.0f + 0.5f;
         ind = ind + 1;
         for(int i=0;i<numfuture_f;i++){
-//            input_NN[ind] = (f_future[2*i+2] - f_future[0])/10000.0f+0.5f;
-            input_NN[ind] = (f_future[time_interval*i+time_interval])/10000.0f+0.5f;
+            input_NN[ind] = (f_future[time_interval*i+time_interval] - f_future[0])/10000.0f+0.5f;
+//            input_NN[ind] = (f_future[time_interval*i+time_interval])/10000.0f+0.5f;
             ind = ind + 1;
         }