Skip to content

Commit

Permalink
🩹 Fix some kinematic conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Sep 3, 2024
1 parent 5f0b9d4 commit 7aaba66
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/gcode/gcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
case 0: case 1: // G0: Fast Move, G1: Linear Move
G0_G1(TERN_(HAS_FAST_MOVES, parser.codenum == 0)); break;

#if ENABLED(ARC_SUPPORT) && DISABLED(SCARA)
#if ENABLED(ARC_SUPPORT)
case 2: case 3: G2_G3(parser.codenum == 2); break; // G2: CW ARC, G3: CCW ARC
#endif

Expand Down
7 changes: 0 additions & 7 deletions Marlin/src/gcode/motion/G2_G3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@
#include "../gcode.h"
#include "../../module/motion.h"
#include "../../module/planner.h"
#include "../../module/temperature.h"

#if ENABLED(DELTA)
#include "../../module/delta.h"
#elif ENABLED(SCARA)
#include "../../module/scara.h"
#endif

#if N_ARC_CORRECTION < 1
#undef N_ARC_CORRECTION
Expand Down
9 changes: 3 additions & 6 deletions Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
* Babystepping
*/
#if ENABLED(BABYSTEPPING)
#if ENABLED(SCARA)
#if IS_SCARA
#error "BABYSTEPPING is not implemented for SCARA yet."
#elif ENABLED(BABYSTEP_XY) && ANY(MARKFORGED_XY, MARKFORGED_YX)
#error "BABYSTEPPING only implemented for Z axis on MarkForged."
Expand Down Expand Up @@ -1777,9 +1777,6 @@ static_assert(NUM_SERVOS <= NUM_SERVO_PLUGS, "NUM_SERVOS (or some servo index) i
*/
#if HAS_Z_AXIS
static_assert(Z_CLEARANCE_FOR_HOMING <= Z_MAX_POS, "Z_CLEARANCE_FOR_HOMING must be less than or equal to Z_MAX_POS.");
#if ALL(Z_HOME_TO_MAX, HOME_Z_FIRST) && NONE(DELTA, TPARA)
static_assert(Z_CLEARANCE_FOR_HOMING == 0, "Z_CLEARANCE_FOR_HOMING must be 0.");
#endif
#endif

// Check Safe Bed Leveling settings
Expand Down Expand Up @@ -4321,9 +4318,9 @@ static_assert(_PLUS_TEST(3), "DEFAULT_MAX_ACCELERATION values must be positive."
static_assert(SHAPING_FREQ_X == SHAPING_FREQ_Y && SHAPING_FREQ_Y == SHAPING_FREQ_Z, "SHAPING_FREQ_X, SHAPING_FREQ_Y and SHAPING_FREQ_Z must be the same for DELTA.");
static_assert(SHAPING_ZETA_X == SHAPING_ZETA_Y && SHAPING_ZETA_Y == SHAPING_ZETA_Z, "SHAPING_ZETA_X, SHAPING_ZETA_Y and SHAPING_ZETA_Z must be the same for DELTA.");
#endif
#elif ENABLED(SCARA)
#elif IS_SCARA
#error "Input Shaping is not compatible with SCARA kinematics."
#elif ENABLED(TPARA)
#elif ENABLED(AXEL_TPARA)
#error "Input Shaping is not compatible with TPARA kinematics."
#elif ENABLED(POLAR)
#error "Input Shaping is not compatible with POLAR kinematics."
Expand Down

0 comments on commit 7aaba66

Please sign in to comment.