void IncrementStep(void) { fStep = fmod(fStep + IncStep, CYCLE_SIZE); Step = (int)fStep; if (agvMoving) agvMove(); RedisplayBoth(); }
/* rotate the axis and adjust position if nec. */ void rotatethering(void) { Rotation += ROTATEINC; if (agvMoving) /* we since we are the only idle function, we must */ agvMove(); /* give AGV the chance to update the eye position */ glutPostRedisplay(); }