mirror of
https://github.com/MarlinFirmware/Configurations.git
synced 2025-07-06 14:37:39 -06:00
parent
7c371adc6d
commit
6a095a6427
375 changed files with 2625 additions and 3375 deletions
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1127,15 +1127,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1158,18 +1161,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1123,15 +1123,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1154,18 +1157,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1119,15 +1119,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1150,18 +1153,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1119,15 +1119,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1150,18 +1153,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1117,15 +1117,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1148,18 +1151,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1120,15 +1120,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1151,18 +1154,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
|
@ -1118,15 +1118,18 @@
|
||||||
/**
|
/**
|
||||||
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
* Fixed-time-based Motion Control -- EXPERIMENTAL
|
||||||
* Enable/disable and set parameters with G-code M493.
|
* Enable/disable and set parameters with G-code M493.
|
||||||
|
* See ft_types.h for named values used by FTM options.
|
||||||
*/
|
*/
|
||||||
//#define FT_MOTION
|
//#define FT_MOTION
|
||||||
#if ENABLED(FT_MOTION)
|
#if ENABLED(FT_MOTION)
|
||||||
#define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h)
|
//#define FTM_IS_DEFAULT_MOTION // Use FT Motion as the factory default?
|
||||||
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
#define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (DISABLED, Z_BASED, MASS_BASED)
|
||||||
|
#define FTM_DEFAULT_SHAPER_X ftMotionShaper_NONE // Default shaper mode on X axis (NONE, ZV, ZVD, ZVDD, ZVDDD, EI, 2HEI, 3HEI, MZV)
|
||||||
|
#define FTM_DEFAULT_SHAPER_Y ftMotionShaper_NONE // Default shaper mode on Y axis
|
||||||
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
#define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
#define FTM_LINEAR_ADV_DEFAULT_ENA false // Default linear advance enable (true) or disable (false)
|
||||||
#define FTM_LINEAR_ADV_DEFAULT_K 0.0f // Default linear advance gain
|
#define FTM_LINEAR_ADV_DEFAULT_K 0 // Default linear advance gain, integer value. (Acceleration-based scaling factor.)
|
||||||
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
#define FTM_SHAPING_ZETA_X 0.1f // Zeta used by input shapers for X axis
|
||||||
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
#define FTM_SHAPING_ZETA_Y 0.1f // Zeta used by input shapers for Y axis
|
||||||
|
|
||||||
|
@ -1149,18 +1152,13 @@
|
||||||
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
#define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (Reciprocal of FTM_TS)
|
||||||
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
#define FTM_TS 0.001f // (s) Time step for trajectory generation. (Reciprocal of FTM_FS)
|
||||||
|
|
||||||
// These values may be configured to adjust the duration of loop().
|
|
||||||
#define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop()
|
|
||||||
#define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop()
|
|
||||||
|
|
||||||
#if DISABLED(COREXY)
|
#if DISABLED(COREXY)
|
||||||
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
#define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update
|
||||||
|
|
||||||
// Use this to adjust the time required to consume the command buffer.
|
// Use this to adjust the time required to consume the command buffer.
|
||||||
// Try increasing this value if stepper motion is choppy.
|
// Try increasing this value if stepper motion is choppy.
|
||||||
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
#define FTM_STEPPERCMD_BUFF_SIZE 3000 // Size of the stepper command buffers
|
||||||
// (FTM_STEPS_PER_LOOP * FTM_POINTS_PER_LOOP) is a good start
|
|
||||||
// If you run out of memory, fall back to 3000 and increase progressively
|
|
||||||
#else
|
#else
|
||||||
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
// CoreXY motion needs a larger buffer size. These values are based on our testing.
|
||||||
#define FTM_STEPPER_FS 30000
|
#define FTM_STEPPER_FS 30000
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue