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.
http://beagleg.org/
GNU General Public License v3.0
122 stars 51 forks source link

ESTOP should clear any internal queue #65

Open lromor opened 1 year ago

lromor commented 1 year ago

After estop is triggered, the machine state is set to homingstate = 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).