Change some variable names for the sake of consistency
This commit is contained in:
@@ -633,10 +633,10 @@ static int motCreep(pDMC2280Driv self, double target) {
|
|||||||
* We may still move, calculate if we will and how far
|
* We may still move, calculate if we will and how far
|
||||||
*/
|
*/
|
||||||
if (self->debug) {
|
if (self->debug) {
|
||||||
char text[CMDLEN];
|
char line[CMDLEN];
|
||||||
snprintf(text, CMDLEN, "CREEP: cur=%d, target=%d, offset=%d, new=%d",
|
snprintf(line, CMDLEN, "CREEP: cur=%d, target=%d, offset=%d, new=%d",
|
||||||
self->currSteps, target_steps, offset, self->currSteps + offset);
|
self->currSteps, target_steps, offset, self->currSteps + offset);
|
||||||
SICSLogWrite(text, eStatus);
|
SICSLogWrite(line, eStatus);
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* We don't want to handle each case separately, so fold negative into positive case
|
* We don't want to handle each case separately, so fold negative into positive case
|
||||||
@@ -689,10 +689,10 @@ static int motCreep(pDMC2280Driv self, double target) {
|
|||||||
offset = - offset;
|
offset = - offset;
|
||||||
|
|
||||||
if (self->debug) {
|
if (self->debug) {
|
||||||
char text[CMDLEN];
|
char line[CMDLEN];
|
||||||
snprintf(text, CMDLEN, "CREEP: cur=%d, target=%d, offset=%d, new=%d",
|
snprintf(line, CMDLEN, "CREEP: cur=%d, target=%d, offset=%d, new=%d",
|
||||||
self->currSteps, target_steps, offset, self->currSteps + offset);
|
self->currSteps, target_steps, offset, self->currSteps + offset);
|
||||||
SICSLogWrite(text, eStatus);
|
SICSLogWrite(line, eStatus);
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* The new absolute step target is the current step position plus
|
* The new absolute step target is the current step position plus
|
||||||
|
|||||||
Reference in New Issue
Block a user