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:
- 44:13c0c33f1554
- Parent:
- 42:59ceb4b6bc69
- Child:
- 45:162116db828a
--- a/main.cpp Fri Jun 26 09:47:16 2020 +0000 +++ b/main.cpp Fri Jun 26 09:49:10 2020 +0000 @@ -326,6 +326,11 @@ #endif #endif } +void tractorReadSpeed2(){ + + speedClock=0; + +} //******************************************************* void speedMediaCalc() { @@ -1746,6 +1751,7 @@ if (inProva==0) { tractorSpeedRead.rise(&tractorReadSpeed); + tractorSpeedRead.fall(&tractorReadSpeed2); #if !defined(speedMaster) quinconceIn.rise(&quincTrigon); quinconceIn.fall(&quincTrigof); @@ -1820,9 +1826,9 @@ //************************************************************************************************************** while (true) { // ripetitore segnale di velocità. Il set a 1 è nella task ad interrupt - if (tractorSpeedRead==0) { - speedClock=0; - } + //if (tractorSpeedRead==0) { + // speedClock=0; + //} if ((tractorSpeed_MtS_timed>0.0f)&&(oldTractStop==1)){ alarmDelay.start(); oldTractStop=0;