Olivia Itzel Solano
/
Contador_De_Pasos
Contador de pasos
Diff: solano.h
- Revision:
- 12:a73fdd04a291
- Parent:
- 9:ff57931068f4
--- a/solano.h Sat Feb 13 01:40:47 2016 +0000 +++ b/solano.h Mon Feb 15 00:39:58 2016 +0000 @@ -26,7 +26,35 @@ //gled = 1.0 - abs(data[1]/17000.0); bled = 1.0 - abs(data[2]/17000.0); wait(0.4); + pc.printf("pasos %d\n",cont); + cont++; + rled=0; + + //if(cont >'1'){ + // cont++; + //contt= cont1+cont; + //pc.printf("paso %d\n",cont+cont1); + //wait(1.0); + //pc.printf("paso %d\n",contt); + }else{ + rled=1; + } + // if(-3500<data[2]&& data[2]>1000 ){ + // cont1++; + //contt=cont+cont1; + //pc.printf("pasito%d\n",contt); + // pc.printf("%d\n",cont1); + // rled=0; + // }else{ + // rled=1; + } + //if(1000>data[2]&& data[2]<=-3500){ + //data[2]=0; + + } + } + }