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.
Dependencies: mbed X_NUCLEO_IHM03A1_for
Diff: main.cpp
- Revision:
- 16:786bb20a6759
- Parent:
- 14:e2b5efa06c41
- Child:
- 17:9629eb019892
--- a/main.cpp Sun Mar 31 14:51:36 2019 +0000 +++ b/main.cpp Sun Mar 31 15:11:53 2019 +0000 @@ -2132,7 +2132,7 @@ if ((speedCorrectionMachine>0.0)&&(speedCorrectionMachine<tabSpeed[0])) { dutyTeorico = tabComan[0]; } - for (int ii = 0; ii<16; ii++) { + for (int ii = 0; ii<6; ii++) { // era ii<16 if ((speedCorrectionMachine>=tabSpeed[ii])&&(speedCorrectionMachine<tabSpeed[ii+1])) { // esegue l'interpolazione dei valori stimati di duty in base alla velocità deltaV=tabSpeed[ii+1]-tabSpeed[ii];