- Refactored histogram memory code a little
- motor driver for ECB now fully working - Fixed an anticollider bug - Untested version of a driver for the Risoe TDC histogram memory
This commit is contained in:
6
motreg.c
6
motreg.c
@ -95,7 +95,8 @@ int StartRegMot(pMotReg self, SConnection *pCon, float fValue){
|
||||
int ret;
|
||||
long (*oldSet)(void *pmotorData, SConnection *pCon, float fValue);
|
||||
pIDrivable pDriv = NULL;
|
||||
|
||||
char pBueffel[132];
|
||||
|
||||
|
||||
assert(self);
|
||||
pDriv = GetDrivableInterface(self->motorData);
|
||||
@ -107,6 +108,9 @@ int StartRegMot(pMotReg self, SConnection *pCon, float fValue){
|
||||
self->motorData,
|
||||
pCon,
|
||||
fValue);
|
||||
sprintf(pBueffel,"anticollision started %s to %f",self->motorName,
|
||||
fValue);
|
||||
SCWrite(pCon,pBueffel,eValue);
|
||||
|
||||
pDriv->SetValue = oldSet;
|
||||
self->iActive = 1;
|
||||
|
Reference in New Issue
Block a user