mcdc3006s_data.h
Go to the documentation of this file.
00001 #ifndef __MCD3006S_DATA_H__
00002 #define __MCD3006S_DATA_H__
00003 
00030 //#define MCDC3006S_PULSES_PER_REV 2048      // Warning
00031 //#define MCDC3006S_REDUCTION_FACTOR 123000  // motorValue = FACTOR * dofValue
00032 #define CALIBRATION_TIMEOUT 10              // Calibration timeout in seconds
00033 #define CALIBRATION_VELOCITY 500            // Calibration velocity in rpm
00034 #define CALIBRATION_CURRENT_LIMIT 1500      // Calibration limit current in mA
00035 
00036 #define ACTIVATE 1
00037 #define DEACTIVATE 0
00038 
00039 #ifndef TRUE
00040 #define TRUE 1
00041 #endif
00042 
00043 #ifndef FALSE
00044 #define FALSE 0
00045 #endif
00046 
00047 // Driver Masks used to extract information from GST and GFS (Get Status and Get Fault Status) commands
00048 #define ENABLED_MASK            8           
00050 #define CURRENT_LIMITING_MASK   16          
00052 #define OVERVOLTAGE_MASK        64          
00054 #define OVERTEMPERATURE_MASK    128         
00056 #define DRIVER_INPUT_4_MASK     2048        
00062 typedef struct driverConf {
00063 
00064         long int maxPos;
00066         long int minPos;
00068         long int maxVel;
00070         long int maxAcc;
00072         long int maxDec;
00074         long int cCLimit;
00075 } driverConf_t;
00076 
00080 typedef struct driverMotorSensor {
00082         long int p;
00084         long int v;
00086         long int i;
00087 } driverSensor_t;
00088 
00092 typedef struct driverStatus {
00094         int disabled;
00096         int overTemperature;
00099         int curLimiting;
00102         int overVoltage;
00105         int sensorReached;
00106 } driverStatus_t;
00107 
00108 #endif


maggie_motor_drivers
Author(s): Raul Perula-Martinez
autogenerated on Mon Sep 14 2015 03:06:39