hzeller / beagleg

G-code interpreter and stepmotor controller for crazy fast coordinated moves of up to 8 steppers. Uses the Programmable Realtime Unit (PRU) of the Beaglebone.

Home Page:http://beagleg.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESTOP should clear any internal queue

lromor opened this issue · comments

After estop is triggered, the machine state is set to homing_state_ = GCodeMachineControl::HomingState::NEVER_HOMED;
and motors are shutdown. Segments could still be enqueued in the planner or in worse in the PRU.

We should enforce a clear state after that or an estop clear could lead to machine executing an unfinished PRU segment (at some undefined speed).