ingreso de parametros a controlador PID con un ENCODER .

Dependencies:   DebounceIn Debounced QEI TextLCD2 mbed

/media/uploads/caaruizze/2013-12-07_08.00.53.jpg

Revision:
3:c87c88124d37
Parent:
2:7fd0465280d2
Child:
4:ffdca5c64f59
diff -r 7fd0465280d2 -r c87c88124d37 main.cpp
--- a/main.cpp	Mon Nov 18 15:41:52 2013 +0000
+++ b/main.cpp	Wed Nov 20 21:54:28 2013 +0000
@@ -7,7 +7,7 @@
 AnalogOut Vo(PTE30);
 QEI wheel (PTD5, PTD0, NC, 624);
 TextLCD lcd(PTB10, PTB11, PTE2, PTE3, PTE4, PTE5); // rs, e, d4-d7
-DebouncedIn b1(PTC9); 
+DebouncedIn b1(PTC13); 
 DebounceIn b2(PTC17);
 int x=1,i,d,f,g,h=0,m=0,l=0,k=0,j=0;
 int C1=0x0e;
@@ -125,9 +125,9 @@
     while(1)
     {//whilePID
     wait(0.1);         
-                   sp=h;
-                   kp=m;
-                   kd=l;
+                   sp=i;
+                   kp=d;
+                   kd=f;
                    ki=g;
            
            Sp=(sp*3.3)/100;