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: main.cpp
- Revision:
- 73:1bf7f6a38fde
- Parent:
- 72:a1bd95af46b8
- Child:
- 74:dbbc528f2b18
--- a/main.cpp Wed Jun 27 09:56:03 2018 +0000 +++ b/main.cpp Wed Jun 27 10:02:27 2018 +0000 @@ -782,6 +782,7 @@ * **/ bool check_AFC(Train *stop_train, Train *cont_train){ //TODO - Add same for LR train + bool detected_AFC = false; if( stop_train->get_position_number() == D4){ @@ -972,11 +973,7 @@ **/ void check_position(){ - if(check_NAC()){ - lcd.cls(); - lcd.printf("NAC!!!"); - NAC_action(); - } + if(check_NAC()){NAC_action();} check_AFC(&DR_train,&LR_train); check_AFC(&LR_train,&DR_train); @@ -1310,7 +1307,11 @@ void switch_toSpeed(){ switch(speedcheck){ - + + case 1: + adjustSpeed(&DR_train); + adjustSpeed(&LR_train); + case 2: adjustSpeed(&DR_train);