Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: CAN/function_CAN.cpp
- Revision:
- 99:7bbcb3c0fb06
- Parent:
- 94:44ae3b5a3bff
- Child:
- 101:50159049a518
diff -r cd1b2da4704f -r 7bbcb3c0fb06 CAN/function_CAN.cpp --- a/CAN/function_CAN.cpp Wed Aug 19 02:27:45 2020 +0000 +++ b/CAN/function_CAN.cpp Mon Sep 07 13:24:15 2020 +0000 @@ -23,6 +23,7 @@ extern DigitalOut LED; +extern float u_past[]; extern float x_past[]; extern float x_future[]; extern float f_past[]; @@ -741,6 +742,11 @@ ///////////////Make Data/////////////////// + for(int i=0; i<num_array_u_past-1;i++){ + u_past[i] = u_past[i+1]; + } + u_past[num_array_u_past-1] = output_normalized; + for(int i=0; i<num_array_x_past-1;i++){ x_past[i] = x_past[i+1]; }