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:
Ferdi Franceschini
2007-05-10 16:10:35 +10:00
committed by Douglas Clowes
parent 691ea5dbf0
commit 7a2f0c238a

View File

@@ -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 ) );