/****************************************************************************/
/* statusdef.h  (c++)                                                       */
/*------------------------------------------------------------------------- */
/* Licencia GPL                                                             */
/* Enumeraciones para los codigos de estado de la clase Rhino               */
/* Clase para la gestion del estado del controlador del Servo Robot XR4     */
/*                             RHINO                                        */
/****************************************************************************/
/* Marco Alvarez Reyna                                                      */
/* CIII UTN-FRC Argentina                                                   */
/* Abril 2008                                                               */
/* mail: marcoalrey@gmail.com                                               */
/****************************************************************************/

#define MAX_RB_STATUS_CODES 64 // Rhino Controller Status Messages
#define MAX_RC_STATUS_CODES 16  // Rhino Class Status Messages

// RHINO CONTROLER Status Codes
#define RB_STS_NS 0  

//For SS
#define RB_MOTOR_MOVE   1  //At least one motor is performing a trapezoidal move
#define RB_ERROR        2  //A system error has ocurred
#define RB_DTIMER_ACT   3  //The general purpose delay timer is active
#define RB_WAIT_PENDING 4  //At least one wait on input or wait on switch is still pending
#define RB_NO_TP        5  //No teach pedant is connected
#define RB_TP_ENTER     6  //The teach pedant ENTER key hast been pressed
#define RB_TP_ESC       7 //The teach pedant ESCAPER key hast been pressed
#define RB_TP_ERROR     8  //A teach pedant error has ocurred

//For SA
#define RB_MOTOR_A_TMON 8 + 1 
#define RB_MOTOR_B_TMON 8 + 2 
#define RB_MOTOR_C_TMON 8 + 3 
#define RB_MOTOR_D_TMON 8 + 4 
#define RB_MOTOR_E_TMON 8 + 5 
#define RB_MOTOR_F_TMON 8 + 6 
#define RB_MOTOR_G_TMON 8 + 7 
#define RB_MOTOR_H_TMON 8 + 8 
#define RB_MOTORS_NOTM  8 + 9 

// RHINO CLASS Status Codes
#define RC_STS_NS MAX_RB_STATUS_CODES     + 0
#define RC_DEF_LOG_LEV MAX_RB_STATUS_CODES + 1
#define RC_DEP_CMD_PENDING  MAX_RB_STATUS_CODES + 2

/****************************************************************************/
/* A medida que se codifica la clase se van agregando las distintas         */
/* definiciones de estado en este segmento.                                 */
/****************************************************************************/
