must use pVar in escaped code

This commit is contained in:
timmmooney
2013-11-25 20:40:05 +00:00
parent 3ff2e11b00
commit bdefb9329a
@@ -1249,7 +1249,7 @@ static int loadTrajectory(SS_ID ssId, struct UserVar *pVar) {
sprintf(stringOut, "pfbkcal(@%d)", j);
status = writeRead(ssId, pVar, stringOut, reply);
posfbkcal = atof(&reply[1]);
motorPosOffset[j] = posfbkprog - posfbkcal;
pVar->motorPosOffset[j] = posfbkprog - posfbkcal;
}
#if PSO_DISTANCE_ARRAY