forked from epics_driver_modules/motorBase
Added XPS_STATUS to the XPSInterpose interface
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user