Original Version of STM Board

Dependencies:   FastPWM mbed

Revision:
122:dcb3ce3056a0
Parent:
121:89396c37b03e
Child:
130:26b416050376
diff -r 89396c37b03e -r dcb3ce3056a0 CAN/function_CAN.cpp
--- a/CAN/function_CAN.cpp	Tue Sep 15 00:22:01 2020 +0000
+++ b/CAN/function_CAN.cpp	Tue Sep 15 05:29:49 2020 +0000
@@ -752,10 +752,10 @@
         }
         x_past[num_array_x_past-1] = pos.sen / ENC_PULSE_PER_POSITION;   //mm
         
-        for(int i=0;i<num_array_x_future-1;i++){
-            x_future[i] = x_future[i+1];
-        }
-        x_future[num_array_x_future-1] = pos.sen / ENC_PULSE_PER_POSITION;  //mm
+//        for(int i=0;i<num_array_x_future-1;i++){
+//            x_future[i] = x_future[i+1];
+//        }
+//        x_future[num_array_x_future-1] = pos.sen / ENC_PULSE_PER_POSITION;  //mm
         
         for(int i=0; i<num_array_f_past-1;i++){
             f_past[i] = f_past[i+1];