Added a motor driver which ignores air cushion errors for TRICS (falsely triggered)
This commit is contained in:
13
psi.c
13
psi.c
@ -145,6 +145,7 @@ static void AddPsiCommands(SicsInterp * pInter)
|
||||
/*---------------------------------------------------------------------*/
|
||||
MotorDriver *CreateEL734HP(SConnection * pCon, int argc, char *argv[]);
|
||||
MotorDriver *CreateEL734HPT(SConnection * pCon, int argc, char *argv[]);
|
||||
MotorDriver *CreateEL734Air(SConnection * pCon, int argc, char *argv[]);
|
||||
MotorDriver *MakePiPiezo(Tcl_Interp * pTcl, char *pArray);
|
||||
/*-------------------------------------------------------------------*/
|
||||
static pMotor CreatePsiMotor(SConnection * pCon, int argc, char *argv[])
|
||||
@ -180,6 +181,18 @@ static pMotor CreatePsiMotor(SConnection * pCon, int argc, char *argv[])
|
||||
SCWrite(pCon, pBueffel, eError);
|
||||
return NULL;
|
||||
}
|
||||
} else if (strcmp(argv[1], "el734air") == 0) {
|
||||
pDriver = (MotorDriver *) CreateEL734Air(pCon, argc - 2, &argv[2]);
|
||||
if (!pDriver) {
|
||||
return NULL;
|
||||
}
|
||||
/* create the motor */
|
||||
pNew = MotorInit("EL734air", argv[0], pDriver);
|
||||
if (!pNew) {
|
||||
snprintf(pBueffel,131, "Failure to create motor %s", argv[1]);
|
||||
SCWrite(pCon, pBueffel, eError);
|
||||
return NULL;
|
||||
}
|
||||
} else if (strcmp(argv[1], "el734hpt") == 0) {
|
||||
pDriver = (MotorDriver *) CreateEL734HPT(pCon, argc - 2, &argv[2]);
|
||||
if (!pDriver) {
|
||||
|
Reference in New Issue
Block a user