Browse Source

Patch steps rate comment in trapezoid function

Scott Lahteine 8 years ago
parent
commit
fce1e843b9
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/planner.cpp

+ 2
- 2
Marlin/planner.cpp View File

180
 // Calculates trapezoid parameters so that the entry- and exit-speed is compensated by the provided factors.
180
 // Calculates trapezoid parameters so that the entry- and exit-speed is compensated by the provided factors.
181
 
181
 
182
 void calculate_trapezoid_for_block(block_t* block, float entry_factor, float exit_factor) {
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
   // Limit minimal step rate (Otherwise the timer will overflow.)
186
   // Limit minimal step rate (Otherwise the timer will overflow.)
187
   NOLESS(initial_rate, 120);
187
   NOLESS(initial_rate, 120);

Loading…
Cancel
Save