![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
LIGHT2
Diff: CAN/function_CAN.cpp
- Revision:
- 121:89396c37b03e
- Parent:
- 117:7141c0517b82
- Child:
- 122:dcb3ce3056a0
diff -r 17398540bb1c -r 89396c37b03e CAN/function_CAN.cpp --- a/CAN/function_CAN.cpp Mon Sep 14 13:12:44 2020 +0000 +++ b/CAN/function_CAN.cpp Tue Sep 15 00:22:01 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];