Sungwoo Kim
/
HydraulicControlBoard_Rainbow_v1_2_copy
2011
Diff: CAN/function_CAN.cpp
- Revision:
- 119:89396c37b03e
- Parent:
- 115:7141c0517b82
- Child:
- 120: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];