Proyecto de Tesis en Mecatrónica. Universidad Técnica del Norte. Ernesto Palacios <mecatronica.mid@gmail.com>

Dependencies:   EthernetNetIf HTTPServer QEI_hw RPCInterface mbed

Revision:
22:d5431fff164b
Parent:
21:353b0fe8fc54
Child:
23:2126e38bb48c
--- a/setup.h	Thu Jun 21 03:34:46 2012 +0000
+++ b/setup.h	Mon Jul 02 04:35:28 2012 +0000
@@ -42,12 +42,6 @@
 void setPTO( int freq );
 
 
-/** @brief: Esta es la rutina que cambia la frecuencia
- *  de salida del Micro en comunicacion Ethernet
- */
-void setPTO_eth ( char * input, char * output );    
-
-
 /** @brief: Esta es la rutina que maneja la interrupcion
  *  de alarma
  */
@@ -86,6 +80,15 @@
 void stopTimer2();
 
 
+//________________  FUNCIONES ETHERNET ___________________//
+
+
+/** @brief: Esta es la rutina que cambia la frecuencia
+ *  de salida del Micro en comunicacion Ethernet
+ */
+void setPTO_eth ( char * input, char * output );    
+
+
 /** @brief: Esta Funcion cambia el voltaje de salida el 
  *  valor ingresado debe ser en porcentaje.
  *  Desde -100% hasta +100% dependiendo de la velocidad
@@ -99,24 +102,43 @@
 void setDir_eth ( char * input, char * output );    
 
 
+/** @brief: Encender el Servo (bloquearlo)
+ */
+void setSON_eth ( char * input, char * output );    
+
+
+/** @brief: Cambiar el angulo actual del eje del motor
+ */
+void setANG_eth( char * input, char * output );
+
+
+/** @brief: Cambiar la velocidad de giro al cambiar el angulo del motor
+ */
+void setSPD_eth( char * input, char * output );
+
+
+/** @brief: Leer desde el encoder
+ */
+void getENC_eth( char * input, char * output );
+
+
+/** @brief: Leer desde el encoder
+ */
+void setENC_eth( char * input, char * output );
+
+
+
+//________________ FUNCIONES ENCODER __________________//
+
 /** @brief: Cambiar Direccion @ PTO
  */
-void setSON_eth ( char * input, char * output );    
+int read_encoder();
 
 
 /** @brief: Cambiar Direccion @ PTO
  */
-void setANG_eth( char * input, char * output );
-
+void clear_encoder();
 
-/** @brief: Cambiar Direccion @ PTO
- */
-void setSPD_eth( char * input, char * output );
-
-
-/** @brief: Cambiar Direccion @ PTO
- */
-void getENC_eth( char * input, char * output );
 
 
 // Legacy