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: Debounced FPointer QEI TextLCD keypad mbed
Revision 1:7394ade42a1d, committed 2014-06-16
- Comitter:
- Jesse
- Date:
- Mon Jun 16 04:11:36 2014 +0000
- Parent:
- 0:413ccc1d18e1
- Commit message:
- PID_UltimaTarea
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Jun 13 16:49:12 2014 +0000
+++ b/main.cpp Mon Jun 16 04:11:36 2014 +0000
@@ -293,30 +293,7 @@
//pid=1-(PI/100);
led=1;
led2=0;
- /*PWMmodule2(pp,pid);
- PWMmodule1(pp,0);*/
-
- }
- //Fin de funcion rampa.
-
- //Inicio del PID
-
- /*
- if (PI>=PIant) {
- pid=PI/100;
- led=0;
- led2=1;
- PWMmodule1(pp,pid);
- PWMmodule2(pp,0);
- }
-
- if (PI<PIant)
- {
- pid2=1-(PI/100);
- led=1;
- led2=0;
- PWMmodule2(pp,pid2);
- PWMmodule1(pp,0);
+
}
*/
PIant=PI;
@@ -326,15 +303,6 @@
lcd.locate(8,1);
lcd.printf("u:%.1f",PI);
- //Fin del PID
- /*lcd.cls();
- lcd.locate(0,0);
- lcd.printf("T:%d",medd);
- lcd.locate(0,1);
- lcd.printf("u:%.2f",PI);
- lcd.locate(5,0);
- lcd.printf(":%.2f",inte);
- */
T=T+Ts;
}