예제 #1
0
static stat_t _exec_dwell(mpBuf_t *bf)
{
//	st_prep_dwell((uint32_t)(bf->gm.move_time * 1000000));// convert seconds to uSec
	st_prep_dwell((uint32_t)(bf->gm.move_time));// convert seconds to uSec
	if (mp_free_run_buffer()) cm_cycle_end();			// free buffer & perform cycle_end if planner is empty
	return (STAT_OK);
}
예제 #2
0
파일: planner.c 프로젝트: ADTL/TinyG
static stat_t _exec_dwell(mpBuf_t *bf)
{
	if (bf->move_state == MOVE_STATE_NEW) {
		st_prep_dwell((uint32_t)(bf->time * 1000000));// convert seconds to uSec
		bf->move_state = MOVE_STATE_RUN;
	}
	return (STAT_OK);
}