Allow motor poll rates to be adjusted without an absolute encoder

This commit is contained in:
Douglas Clowes
2013-08-06 11:39:40 +10:00
parent 59e5539d5e
commit 0ffc87e3d7

View File

@ -4437,21 +4437,21 @@ static int DMC2280SetPar(void *pData, SConnection *pCon,
self->bias_bits = newValue;
return 1;
}
if (self->abs_encoder && strcasecmp("motorPollFast", name) == 0) {
if (strcasecmp("motorPollFast", name) == 0) {
/* Debug Managers only */
if (!(self->debug && SCMatchRights(pCon, usMugger)))
return 0;
self->motorPollFast = newValue;
return 1;
}
if (self->abs_encoder && strcasecmp("motorPollSlow", name) == 0) {
if (strcasecmp("motorPollSlow", name) == 0) {
/* Debug Managers only */
if (!(self->debug && SCMatchRights(pCon, usMugger)))
return 0;
self->motorPollSlow = newValue;
return 1;
}
if (self->abs_encoder && strcasecmp("airPollTimer", name) == 0) {
if (strcasecmp("airPollTimer", name) == 0) {
/* Debug Managers only */
if (!(self->debug && SCMatchRights(pCon, usMugger)))
return 0;