From: Joseph Coffland Date: Tue, 27 Nov 2018 05:38:44 +0000 (-0800) Subject: Disable outputs and jog on estop. #170 X-Git-Url: https://git.buildbotics.com/?a=commitdiff_plain;h=179ecbbe8a2a4982bf28ff247e73e3fbbb761f45;p=bbctrl-firmware Disable outputs and jog on estop. #170 --- diff --git a/src/avr/src/estop.c b/src/avr/src/estop.c index 20559fa..67fcecb 100644 --- a/src/avr/src/estop.c +++ b/src/avr/src/estop.c @@ -34,6 +34,7 @@ #include "config.h" #include "state.h" #include "outputs.h" +#include "jog.h" #include "exec.h" #include @@ -89,9 +90,11 @@ void estop_trigger(stat_t reason) { // Set fault signal outputs_set_active(FAULT_PIN, true); - // Hard stop the motors and the spindle + // Hard stop peripherals st_shutdown(); spindle_estop(); + jog_stop(); + outputs_stop(); // Set machine state state_estop();