/****************************************************************************/
/* Copyright 1991,1992 MBARI                                                */
/****************************************************************************/
/* Summary  : Moog Motor Microcontroller Board definitions                  */
/* Filename : moog.h                                                        */
/* Author   : Andrew Pearce                                                 */
/* Project  : ROV Microcontrollers                                          */
/* Version  : Version 1.0                                                   */
/* Created  : 05/16/91                                                      */
/* Modified : 09/03/92                                                      */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/* $Header: /usr/tiburon/.cvsroot/micro/h/generic.h,v 1.1.1.1 1997/05/02 17:15:38 pean Exp $
 * $Log: generic.h,v $
 * Revision 1.1.1.1  1997/05/02 17:15:38  pean
 * Initial release of the microcontroller software after Tiburon
 * Moolpool Dive to test IView, Lapboxes, modified Power can
 * GF/5V using bus capacitance mode.
 *
 * Revision 2.0  93/06/18  16:43:51  16:43:51  pean (Andrew Pearce)
 * Added Keep Alive Serial Packets
 * Updated default Controller Gains & Constants after Thruster Characterization
 *
 * Revision 1.4  93/05/20  13:39:56  13:39:56  pean (Andrew Pearce)
 * Controller algorithms tested with vxWorks software on dyno.
 * Data acquisition mode added for motor characterization
 * IIR Filter added to velocity filter
 *
 * Revision 1.3  92/11/11  15:18:25  15:18:25  pean (Andrew Pearce)
 * Final version for prototype after testing regeneration limit mode
 *
 * Revision 1.3  92/09/01  12:05:39  12:05:39  pean (Andrew Pearce)
 * *** empty log message ***
 *
 * Revision 1.1  92/06/29  10:08:08  10:08:08  pean (Andrew Pearce 408-647-3746)
 * Initial revision
 *
 * Revision 1.2  92/06/12  17:11:37  17:11:37  pean (Andrew Pearce 408-647-3746)
 * Fixed checkTemperature, inverted sense of motor status & foldback signals
 * Added getMotorTorqueCmd serial command to return commanded torque
 * Modified microResetCmd to send CMD_OK and wait 50 msec before hard reset
 * Added board & motor serial number, Software revision read functions
 *
 * Revision 1.1  92/05/13  17:40:09  17:40:09  pean (Andrew Pearce 408-647-3746)
 * Initial revision
 * Added getMotorTorqueCmd serial command to return commanded torque
 *
*/
/****************************************************************************/

#define GET_TEMPERATURE         0x01    /* Get Temperature Sensor Value     */
#define GET_TEMP_ALARM_STATUS   0x02    /* Get Temperature Alarm Status     */
#define GET_TEMP_ALARM_THRESH   0x03    /* Get temperature alarm threshold  */
#define SET_TEMP_ALARM_THRESH   0x04    /* Set temperature alarm threshold  */

#define READ_HUMIDITY           0x06    /* Get Humidity Sensor Reading      */
#define READ_HUMIDITY_ALARM     0x07    /* Get Humidity Alarm Status        */
#define GET_HUMIDITY_THRESH     0x08    /* Get Humidity Alarm Threshold     */
#define SET_HUMIDITY_THRESH     0x09    /* Set Humidity Alarm Threshold     */

#define GET_WATER_ALARM_THRESH  0x0a    /* Get water alarm threshold        */
#define SET_WATER_ALARM_THRESH  0x0b    /* Set water alarm threshold        */
#define GET_WATER_ALARM         0x0c    /* Get water alarm status word      */



