Modified the ANSTO simulated motor driver so that it now accepts a list of named parameters, and supports the extra metadata parameters needed for generating hipadaba interfaces.
This means that ASIM motor drivers can now be configured with the same configuration file as the DMC2280 driver. Also ensured that motors drive instantly to there target position, this streamlines testing and is useful for the script validation server. r1949 | ffr | 2007-05-10 13:15:21 +1000 (Thu, 10 May 2007) | 4 lines
This commit is contained in:
committed by
Douglas Clowes
parent
cb7d9fc8ae
commit
73d144340d
@@ -94,7 +94,7 @@ static void RemoveCommands(SicsInterp *pSics){
|
||||
pNew->pActionRoutine = DMC2280Action;
|
||||
}
|
||||
if(strcmp(argv[1],"asim") == 0) {
|
||||
pDriver = (MotorDriver *)CreateASIM(pCon,argc-2,&argv[2]);
|
||||
pDriver = (MotorDriver *)CreateASIM(pCon,argv[0],argv[2]);
|
||||
if(!pDriver){
|
||||
return NULL;
|
||||
}
|
||||
@@ -104,6 +104,7 @@ static void RemoveCommands(SicsInterp *pSics){
|
||||
SCWrite(pCon,pBueffel,eError);
|
||||
return NULL;
|
||||
}
|
||||
pNew->pActionRoutine = SimAction;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user