Skip to content

Commit

Permalink
✨ Per-axis TMC hold multiplier (MarlinFirmware#23345)
Browse files Browse the repository at this point in the history
  • Loading branch information
fflosi authored and mh-dm committed May 15, 2022
1 parent 0376286 commit c733573
Show file tree
Hide file tree
Showing 3 changed files with 336 additions and 216 deletions.
19 changes: 19 additions & 0 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -2690,6 +2690,7 @@
#define X_RSENSE 0.11
#define X_CHAIN_POS -1 // -1..0: Not chained. 1: MCU MOSI connected. 2: Next in chain, ...
//#define X_INTERPOLATE true // Enable to override 'INTERPOLATE' for the X axis
//#define X_HOLD_MULTIPLIER 0.5 // Enable to override 'HOLD_MULTIPLIER' for the X axis
#endif

#if AXIS_IS_TMC(X2)
Expand All @@ -2699,6 +2700,7 @@
#define X2_RSENSE 0.11
#define X2_CHAIN_POS -1
//#define X2_INTERPOLATE true
//#define X2_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(Y)
Expand All @@ -2708,6 +2710,7 @@
#define Y_RSENSE 0.11
#define Y_CHAIN_POS -1
//#define Y_INTERPOLATE true
//#define Y_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(Y2)
Expand All @@ -2717,6 +2720,7 @@
#define Y2_RSENSE 0.11
#define Y2_CHAIN_POS -1
//#define Y2_INTERPOLATE true
//#define Y2_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(Z)
Expand All @@ -2726,6 +2730,7 @@
#define Z_RSENSE 0.11
#define Z_CHAIN_POS -1
//#define Z_INTERPOLATE true
//#define Z_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(Z2)
Expand All @@ -2735,6 +2740,7 @@
#define Z2_RSENSE 0.11
#define Z2_CHAIN_POS -1
//#define Z2_INTERPOLATE true
//#define Z2_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(Z3)
Expand All @@ -2744,6 +2750,7 @@
#define Z3_RSENSE 0.11
#define Z3_CHAIN_POS -1
//#define Z3_INTERPOLATE true
//#define Z3_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(Z4)
Expand All @@ -2753,6 +2760,7 @@
#define Z4_RSENSE 0.11
#define Z4_CHAIN_POS -1
//#define Z4_INTERPOLATE true
//#define Z4_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(I)
Expand All @@ -2762,6 +2770,7 @@
#define I_RSENSE 0.11
#define I_CHAIN_POS -1
//#define I_INTERPOLATE true
//#define I_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(J)
Expand All @@ -2771,6 +2780,7 @@
#define J_RSENSE 0.11
#define J_CHAIN_POS -1
//#define J_INTERPOLATE true
//#define J_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(K)
Expand All @@ -2780,6 +2790,7 @@
#define K_RSENSE 0.11
#define K_CHAIN_POS -1
//#define K_INTERPOLATE true
//#define K_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(E0)
Expand All @@ -2788,6 +2799,7 @@
#define E0_RSENSE 0.11
#define E0_CHAIN_POS -1
//#define E0_INTERPOLATE true
//#define E0_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(E1)
Expand All @@ -2796,6 +2808,7 @@
#define E1_RSENSE 0.11
#define E1_CHAIN_POS -1
//#define E1_INTERPOLATE true
//#define E1_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(E2)
Expand All @@ -2804,6 +2817,7 @@
#define E2_RSENSE 0.11
#define E2_CHAIN_POS -1
//#define E2_INTERPOLATE true
//#define E2_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(E3)
Expand All @@ -2812,6 +2826,7 @@
#define E3_RSENSE 0.11
#define E3_CHAIN_POS -1
//#define E3_INTERPOLATE true
//#define E3_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(E4)
Expand All @@ -2820,6 +2835,7 @@
#define E4_RSENSE 0.11
#define E4_CHAIN_POS -1
//#define E4_INTERPOLATE true
//#define E4_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(E5)
Expand All @@ -2828,6 +2844,7 @@
#define E5_RSENSE 0.11
#define E5_CHAIN_POS -1
//#define E5_INTERPOLATE true
//#define E5_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(E6)
Expand All @@ -2836,6 +2853,7 @@
#define E6_RSENSE 0.11
#define E6_CHAIN_POS -1
//#define E6_INTERPOLATE true
//#define E6_HOLD_MULTIPLIER 0.5
#endif

#if AXIS_IS_TMC(E7)
Expand All @@ -2844,6 +2862,7 @@
#define E7_RSENSE 0.11
#define E7_CHAIN_POS -1
//#define E7_INTERPOLATE true
//#define E7_HOLD_MULTIPLIER 0.5
#endif

/**
Expand Down
Loading

0 comments on commit c733573

Please sign in to comment.