HCoop
/
clinton
/
Smoothieware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make s_value 1.11 fixed pointto use no extra memory in Block
[clinton/Smoothieware.git]
/
src
/
modules
/
robot
/
Planner.cpp
diff --git
a/src/modules/robot/Planner.cpp
b/src/modules/robot/Planner.cpp
index
4cf3cc7
..
1432e44
100644
(file)
--- a/
src/modules/robot/Planner.cpp
+++ b/
src/modules/robot/Planner.cpp
@@
-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