make s_value 1.11 fixed pointto use no extra memory in Block
[clinton/Smoothieware.git] / src / modules / robot / Planner.cpp
index 4cf3cc7..1432e44 100644 (file)
@@ -78,7 +78,7 @@ bool Planner::append_block( ActuatorCoordinates &actuator_pos, uint8_t n_motors,
     }
 
     // info needed by laser
-    block->s_value = s_value;
+    block->s_value = roundf(s_value*(1<<11)); // 1.11 fixed point
     block->is_g123 = g123;
 
     // use default JD