|
@@ -180,8 +180,8 @@ FORCE_INLINE float intersection_distance(float initial_rate, float final_rate, f
|
180
|
180
|
// Calculates trapezoid parameters so that the entry- and exit-speed is compensated by the provided factors.
|
181
|
181
|
|
182
|
182
|
void calculate_trapezoid_for_block(block_t* block, float entry_factor, float exit_factor) {
|
183
|
|
- unsigned long initial_rate = ceil(block->nominal_rate * entry_factor); // (step/min)
|
184
|
|
- unsigned long final_rate = ceil(block->nominal_rate * exit_factor); // (step/min)
|
|
183
|
+ unsigned long initial_rate = ceil(block->nominal_rate * entry_factor),
|
|
184
|
+ final_rate = ceil(block->nominal_rate * exit_factor); // (steps per second)
|
185
|
185
|
|
186
|
186
|
// Limit minimal step rate (Otherwise the timer will overflow.)
|
187
|
187
|
NOLESS(initial_rate, 120);
|