Yeseong Jeong
/
HydraulicControlBoard_Start
20210203
Diff: main.cpp
- Revision:
- 121:89396c37b03e
- Parent:
- 120:17398540bb1c
- Child:
- 122:dcb3ce3056a0
--- a/main.cpp Mon Sep 14 13:12:44 2020 +0000 +++ b/main.cpp Tue Sep 15 00:22:01 2020 +0000 @@ -1,4 +1,4 @@ -//200914-4 +//200915-1 #include "mbed.h" #include "FastPWM.h" #include "INIT_HW.h" @@ -397,10 +397,11 @@ } input_NN[ind] = (pos.sen / ENC_PULSE_PER_POSITION) / 60.0f; ind = ind + 1; -// for(int i=0;i<numfuture_x;i++){ -// input_NN[ind] = x_future[time_interval*i+time_interval] / 60.0f; -// ind = ind + 1; -// } + + for(int i=0; i<numfuture_x; i++) { + input_NN[ind] = x_future[time_interval*i+time_interval] / 60.0f; + ind = ind + 1; + } for(int i=0; i<numpast_f; i++) { input_NN[ind] = f_past[time_interval*i] / 10000.0f + 0.5f;