Jeff Epler <[EMAIL PROTECTED]> wrote: > Modified file emc2/src/hal/components/stepgen.c > > date: 2007/01/18 17:54:15; author: jepler; state: Exp; lines: +8 -8 > improve unobtainable step rate message (backport candidate) > > - "STEPGEN: Channel %d: The requested maximum velocity of %d steps > per second is not attainable.\n", > - n, (int) (stepgen->maxvel * fabs(stepgen->pos_scale))); > - rtapi_print_msg(RTAPI_MSG_ERR, > - "STEPGEN: The maximum number of steps possible is %d > per second\n", > - (int)max_freq); > +"STEPGEN: Channel %d: The requested step rate of %dHz is not attainable. " > +"The maximum step rate is %dHz. You must reduce MAX_VELOCITY, INPUT_SCALE, " > +"or BASE_PERIOD. Otherwise, following errors will result.\n", > + n, (int) (stepgen->maxvel * fabs(stepgen->pos_scale)), > + (int)max_freq);
This opinion probably won't be popular, especially among those who only use HAL as part of EMC. But I don't think EMC specific items such as MAX_VELOCITY, INPUT_SCALE, and BASE_PERIOD should not appear in a generic HAL component like stepgen. Regards, John Kasunich ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers