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: manualMode.h
- Revision:
- 25:e72246ed7ec7
- Parent:
- 24:6d2573d6f2b6
- Child:
- 28:70e45354fbf3
--- a/manualMode.h Sun Nov 08 04:26:26 2015 +0000
+++ b/manualMode.h Sun Nov 08 05:10:15 2015 +0000
@@ -74,23 +74,20 @@
}
void manualIM920()
{
- if(b==7){ /*mode change*/
- if(edge7){
- Com.detach();
- edge7=0;
- autoflag=1;
- Indicator4=1;
- IndicatorAuto=0;
- Move_l(0.0);
- Move_r(0.0);
- direction_controller.setTunings(36.0,3.0,0.0);
- resetState();
- flaga=0;
- step=114;
- CStep=114;
- spcount=speed;
- Com.attach(&Call,RATE);
- }
+ if(modeflag){ /*mode change*/
+ Com.detach();
+ autoflag=1;
+ Indicator4=1;
+ IndicatorAuto=0;
+ Move_l(0.0);
+ Move_r(0.0);
+ direction_controller.setTunings(36.0,3.0,0.0);
+ resetState();
+ flaga=0;
+ step=114;
+ CStep=114;
+ spcount=speed;
+ Com.attach(&Call,RATE);
}
else if(b==5){
if(edge5){