|
1112 | 1112 | */
|
1113 | 1113 | //#define FT_MOTION
|
1114 | 1114 | #if ENABLED(FT_MOTION)
|
1115 |
| - #define FTM_DEFAULT_MODE ftMotionMode_ENABLED // Default mode of fixed time control. (Enums in ft_types.h) |
| 1115 | + #define FTM_DEFAULT_MODE ftMotionMode_DISABLED // Default mode of fixed time control. (Enums in ft_types.h) |
1116 | 1116 | #define FTM_DEFAULT_DYNFREQ_MODE dynFreqMode_DISABLED // Default mode of dynamic frequency calculation. (Enums in ft_types.h)
|
1117 | 1117 | #define FTM_SHAPING_DEFAULT_X_FREQ 37.0f // (Hz) Default peak frequency used by input shapers.
|
1118 | 1118 | #define FTM_SHAPING_DEFAULT_Y_FREQ 37.0f // (Hz) Default peak frequency used by input shapers.
|
|
1124 | 1124 | /**
|
1125 | 1125 | * Advanced configuration
|
1126 | 1126 | */
|
1127 |
| - #define FTM_BATCH_SIZE 100 // Batch size for trajectory generation; |
| 1127 | + #define FTM_BATCH_SIZE 100 // Batch size for trajectory generation; |
1128 | 1128 | // half the window size for Ulendo FBS.
|
1129 |
| - #define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (1 / FTM_TS) |
1130 |
| - #define FTM_TS 0.001f // (s) Time step for trajectory generation. (1 / FTM_FS) |
1131 |
| - #define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update. |
| 1129 | + #define FTM_FS 1000 // (Hz) Frequency for trajectory generation. (1 / FTM_TS) |
| 1130 | + #define FTM_TS 0.001f // (s) Time step for trajectory generation. (1 / FTM_FS) |
| 1131 | + #define FTM_STEPPER_FS 20000 // (Hz) Frequency for stepper I/O update. |
1132 | 1132 | #define FTM_MIN_TICKS ((STEPPER_TIMER_RATE) / (FTM_STEPPER_FS)) // Minimum stepper ticks between steps.
|
1133 |
| - #define FTM_MIN_SHAPE_FREQ 10 // Minimum shaping frequency. |
1134 |
| - #define FTM_ZMAX 100 // Maximum delays for shaping functions (even numbers only!). |
| 1133 | + #define FTM_MIN_SHAPE_FREQ 10 // Minimum shaping frequency. |
| 1134 | + #define FTM_ZMAX 100 // Maximum delays for shaping functions (even numbers only!). |
1135 | 1135 | // Calculate as:
|
1136 | 1136 | // 1/2 * (FTM_FS / FTM_MIN_SHAPE_FREQ) for ZV.
|
1137 | 1137 | // (FTM_FS / FTM_MIN_SHAPE_FREQ) for ZVD, MZV.
|
1138 | 1138 | // 3/2 * (FTM_FS / FTM_MIN_SHAPE_FREQ) for 2HEI.
|
1139 | 1139 | // 2 * (FTM_FS / FTM_MIN_SHAPE_FREQ) for 3HEI.
|
1140 |
| - #define FTM_STEPS_PER_UNIT_TIME 20 // Interpolated stepper commands per unit time. |
| 1140 | + #define FTM_STEPS_PER_UNIT_TIME 20 // Interpolated stepper commands per unit time. |
1141 | 1141 | // Calculate as (FTM_STEPPER_FS / FTM_FS).
|
1142 |
| - #define FTM_CTS_COMPARE_VAL 10 // Comparison value used in interpolation algorithm. |
| 1142 | + #define FTM_CTS_COMPARE_VAL 10 // Comparison value used in interpolation algorithm. |
1143 | 1143 | // Calculate as (FTM_STEPS_PER_UNIT_TIME / 2).
|
1144 | 1144 | // These values may be configured to adjust duration of loop().
|
1145 |
| - #define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop(). |
1146 |
| - #define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop(). |
| 1145 | + #define FTM_STEPS_PER_LOOP 60 // Number of stepper commands to generate each loop(). |
| 1146 | + #define FTM_POINTS_PER_LOOP 100 // Number of trajectory points to generate each loop(). |
1147 | 1147 |
|
1148 | 1148 | // This value may be configured to adjust duration to consume the command buffer.
|
1149 | 1149 | // Try increasing this value if stepper motion is not smooth.
|
|
0 commit comments