control de un brazo robotico SCORBOT ER-III a traves de bluetooth con un dispositivo android.

Dependencies:   Motor QEI mbed

Files at this revision

API Documentation at this revision

Comitter:
javierjsp
Date:
Mon Sep 04 18:03:19 2017 +0000
Parent:
4:ceef4dee8284
Commit message:
version final presentada con la cinta, la sonda y el calefactor incluidos.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Sep 04 17:57:54 2017 +0000
+++ b/main.cpp	Mon Sep 04 18:03:19 2017 +0000
@@ -496,7 +496,7 @@
 
 void calefactor()
 {
-    while (map(sonda.read(),0,1,-10,50) > 40)
+    while (map(sonda.read(),0,1,-10,50) < 40)       // mientras la temperatura sea menor que 40º activa el calefactor
     calef.write(1);
     calef.write(0);
 }