Browse Source

One fewer move required…

Scott Lahteine 7 years ago
parent
commit
59eb77fd28
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/planner.cpp

+ 2
- 2
Marlin/planner.cpp View File

1217
     vmax_junction = MINIMUM_PLANNER_SPEED; // Set default max junction speed
1217
     vmax_junction = MINIMUM_PLANNER_SPEED; // Set default max junction speed
1218
 
1218
 
1219
     // Skip first block or when previous_nominal_speed is used as a flag for homing and offset cycles.
1219
     // Skip first block or when previous_nominal_speed is used as a flag for homing and offset cycles.
1220
-    if (moves_queued() && !UNEAR_ZERO(previous_nominal_speed)) {
1220
+    if (moves_queued && !UNEAR_ZERO(previous_nominal_speed)) {
1221
       // Compute cosine of angle between previous and current path. (prev_unit_vec is negative)
1221
       // Compute cosine of angle between previous and current path. (prev_unit_vec is negative)
1222
       // NOTE: Max junction velocity is computed without sin() or acos() by trig half angle identity.
1222
       // NOTE: Max junction velocity is computed without sin() or acos() by trig half angle identity.
1223
       const float cos_theta = - previous_unit_vec[X_AXIS] * unit_vec[X_AXIS]
1223
       const float cos_theta = - previous_unit_vec[X_AXIS] * unit_vec[X_AXIS]
1262
     }
1262
     }
1263
   }
1263
   }
1264
 
1264
 
1265
-  if (moves_queued > 1 && !UNEAR_ZERO(previous_nominal_speed)) {
1265
+  if (moves_queued && !UNEAR_ZERO(previous_nominal_speed)) {
1266
     // Estimate a maximum velocity allowed at a joint of two successive segments.
1266
     // Estimate a maximum velocity allowed at a joint of two successive segments.
1267
     // If this maximum velocity allowed is lower than the minimum of the entry / exit safe velocities,
1267
     // If this maximum velocity allowed is lower than the minimum of the entry / exit safe velocities,
1268
     // then the machine is not coasting anymore and the safe entry / exit velocities shall be used.
1268
     // then the machine is not coasting anymore and the safe entry / exit velocities shall be used.

Loading…
Cancel
Save