- Removed automatic loading of status file on startup
- make soft motor values the default all over - Introduced nxscript putSlab - Fixed a bug in polldriv
This commit is contained in:
17
optimise.c
17
optimise.c
@ -308,22 +308,7 @@
|
||||
{
|
||||
DynarGet(self->pVariables,i,&pData);
|
||||
pOVar = (pOVarEntry)pData;
|
||||
if(FindMotor(pServ->pSics,pOVar->pName) != NULL)
|
||||
{
|
||||
iRet = MotorGetSoftPosition(pOVar->pData,pCon,&fVal);
|
||||
if(iRet == 1)
|
||||
{
|
||||
pOVar->fCenter = fVal;
|
||||
}
|
||||
else
|
||||
{
|
||||
pOVar->fCenter = -1000.;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
pOVar->fCenter = pOVar->pDriv->GetValue(pOVar->pData,pCon);
|
||||
}
|
||||
pOVar->fCenter = pOVar->pDriv->GetValue(pOVar->pData,pCon);
|
||||
if(pOVar->fCenter < -900.)
|
||||
{
|
||||
return SCANERROR;
|
||||
|
Reference in New Issue
Block a user