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:
- 41:a0d9a71f8cb5
- Parent:
- 40:42eae86457dd
- Child:
- 42:59ceb4b6bc69
--- a/main.cpp Mon May 04 11:19:05 2020 +0000 +++ b/main.cpp Mon May 04 12:07:33 2020 +0000 @@ -649,7 +649,8 @@ if (((posError >=1.0f)||(posError<=-1.0f))) { #if defined(runner) double variante = posError/divide; - if (variante < -0.399f){variante=-0.3999;} + //if (variante < -0.399f){variante=-0.3999;} + if (variante < -0.5f){variante=-0.5;} /*if ((posError<=15.0f)&&(posError>=-15.0f)){ ePpos = periodo;// *(1.0f+ variante); }else{*/ @@ -662,7 +663,7 @@ #endif #else double variante = posError/100.0f; - //if (variante < -0.399f){variante=-0.3999;} + if (variante < -0.399f){variante=-0.3999;} ePpos = periodo /(1.0f+ variante); #if defined(pcSerial) #if defined(calcoli)