Added XPS_STATUS to the XPSInterpose interface

This commit is contained in:
MarkRivers
2006-08-30 21:55:33 +00:00
parent 708505fa2c
commit ef8279b0ac
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -15,7 +15,8 @@ typedef struct {
static XPSCommandStruct XPSCommands[XPS_NUM_PARAMS] = {
{minJerkTime, "MIN_JERK_TIME"},
{maxJerkTime, "MAX_JERK_TIME"}
{maxJerkTime, "MAX_JERK_TIME"},
{XPSStatus, "XPS_STATUS"}
};
typedef struct {
+3 -2
View File
@@ -2,8 +2,9 @@
typedef enum {
minJerkTime = MOTOR_AXIS_NUM_PARAMS,
maxJerkTime
maxJerkTime,
XPSStatus
} XPSCommand;
#define XPS_NUM_PARAMS 2
#define XPS_NUM_PARAMS 3
+2
View File
@@ -631,6 +631,8 @@ static void XPSPoller(XPSController *pController)
}
}
/* Set the axis done parameter */
/* Set the axis done parameter */
motorParam->setInteger(pAxis->params, XPSStatus, pAxis->axisStatus);
motorParam->setInteger(pAxis->params, motorAxisDone, axisDone);
if (pAxis->axisStatus == 11) {
motorParam->setInteger(pAxis->params, motorAxisHomeSignal, 1);