G0 direct move for SCARA

master
Scott Lahteine 8 years ago
parent ad9d6870ed
commit 59d39d7655

@ -2509,7 +2509,11 @@ bool position_is_reachable(float target[XYZ]) {
/** /**
* G0, G1: Coordinated movement of X Y Z E axes * G0, G1: Coordinated movement of X Y Z E axes
*/ */
inline void gcode_G0_G1() { inline void gcode_G0_G1(
#if IS_SCARA
bool fast_move=false
#endif
) {
if (IsRunning()) { if (IsRunning()) {
gcode_get_destination(); // For X Y Z E F gcode_get_destination(); // For X Y Z E F
@ -2528,7 +2532,11 @@ inline void gcode_G0_G1() {
#endif //FWRETRACT #endif //FWRETRACT
#if IS_SCARA
fast_move ? prepare_uninterpolated_move_to_destination() : prepare_move_to_destination();
#else
prepare_move_to_destination(); prepare_move_to_destination();
#endif
} }
} }
@ -6974,7 +6982,11 @@ void process_next_command() {
// G0, G1 // G0, G1
case 0: case 0:
case 1: case 1:
#if IS_SCARA
gcode_G0_G1(codenum == 0);
#else
gcode_G0_G1(); gcode_G0_G1();
#endif
break; break;
// G2, G3 // G2, G3

Loading…
Cancel
Save