From 7a2f0c238a9bf623e0b93dfefda79c5e18bb1f87 Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Thu, 10 May 2007 16:10:35 +1000 Subject: [PATCH] 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 --- site_ansto/motor_asim.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/site_ansto/motor_asim.c b/site_ansto/motor_asim.c index 4a89ddce..64c23d37 100644 --- a/site_ansto/motor_asim.c +++ b/site_ansto/motor_asim.c @@ -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 ) );