PSI sics-cvs-psi-2006

This commit is contained in:
2006-05-08 02:00:00 +00:00
committed by Douglas Clowes
parent ae77364de2
commit 6e926b813f
388 changed files with 445529 additions and 14109 deletions

View File

@@ -62,7 +62,7 @@ int CheckAllMotors(int iList, SConnection *pCon){
if(pMot != NULL){
CheckRegMot(pMot,pCon);
if(pMot->iActive){
count++;
count++;
}
}
iRet = LLDnodePtr2Next(iList);
@@ -91,6 +91,21 @@ void StopAllMotors(int iList){
}
}
/*----------------------------------------------------------------------*/
void DeactivateAllMotors(int iList){
int iRet, count = 0;
pMotReg pMot = NULL;
pIDrivable pDriv;
iRet = LLDnodePtr2First(iList);
while(iRet != 0){
LLDnodeDataTo(iList,&pMot);
if(pMot != NULL){
pMot->iActive = 0;
}
iRet = LLDnodePtr2Next(iList);
}
}
/*----------------------------------------------------------------------*/
void KillMotList(int iList){
int iRet;
pMotReg pMot = NULL;