void modifyFeedrate(MPIMotion motion,
float normalFeedrate,
float pauseFeedrate)
{
MPIMotionConfig motionConfig;
long returnValue;
returnValue = mpiMotionConfigGet(motion,
&motionConfig,
NULL);
msgCHECK(returnValue);
printf("Before: normalFeedrate %lf, pauseFeedrate %lf\n",motionConfig.normalFeedrate,motionConfig.pauseFeedrate);
motionConfig.normalFeedrate = normalFeedrate;
motionConfig.pauseFeedrate = pauseFeedrate;
returnValue = mpiMotionConfigSet(motion,
&motionConfig,
NULL);
msgCHECK(returnValue);
printf("After: normalFeedrate %lf, pauseFeedrate %lf\n",motionConfig.normalFeedrate,motionConfig.pauseFeedrate);
}
|