Make sure default drive speed is non-zero, otherwise we're no going anywhere.
r1955 | ffr | 2007-05-10 16:10:35 +1000 (Thu, 10 May 2007) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
691ea5dbf0
commit
7a2f0c238a
@@ -549,7 +549,7 @@ MotorDriver *CreateASIM(SConnection *pCon, char *motor, char *params)
|
||||
pDriv->KillPrivate = SimKill;
|
||||
|
||||
/* set default parameters */
|
||||
pDriv->fSpeed = 0.01;
|
||||
pDriv->fSpeed = 1.0;
|
||||
pDriv->iTime = time(&tD);
|
||||
pDriv->iFaultType = ASIM_NO_FAULT;
|
||||
pDriv->iDuration = 0;
|
||||
@@ -558,7 +558,6 @@ MotorDriver *CreateASIM(SConnection *pCon, char *motor, char *params)
|
||||
pDriv->fTarget = pDriv->fPos;
|
||||
pDriv->fDestination = pDriv->fPos;
|
||||
pDriv->iStatus = OKOK;
|
||||
pDriv->fSpeed = 0;
|
||||
|
||||
srand( (unsigned)time( NULL ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user