.) Use already existing inverse_millimeters instead of / block->millimeters. .) Prevent overflow during acceleration calculation by checking if float is necessary. Idea modified from Sailfish. .) Save two uint32_t or even float multiplications by checking if step[AXIS] has steps and if max acceleration is lower than accel. If not, there is no need to check this axis.
|
|
||
115 |
|
115 |
|
116 |
|
116 |
|
117 |
|
117 |
|
|
118 |
|
|
|
119 |
|
|
118 |
|
120 |
|
119 |
|
121 |
|
120 |
|
122 |
|
|
|
||
1013 |
|
1015 |
|
1014 |
|
1016 |
|
1015 |
|
1017 |
|
1016 |
|
|
|
|
1018 |
|
|
1017 |
|
1019 |
|
1018 |
|
1020 |
|
1019 |
|
1021 |
|
1020 |
|
1022 |
|
1021 |
|
1023 |
|
1022 |
|
1024 |
|
1023 |
|
|
|
1024 |
|
|
|
1025 |
|
|
|
|
1025 |
|
|
|
1026 |
|
|
|
1027 |
|
|
|
1028 |
|
|
|
1029 |
|
|
|
1030 |
|
|
|
1031 |
|
|
|
1032 |
|
|
|
1033 |
|
|
|
1034 |
|
|
|
1035 |
|
|
|
1036 |
|
|
1026 |
|
1037 |
|
1027 |
|
1038 |
|
1028 |
|
1039 |
|
1029 |
|
1040 |
|
1030 |
|
1041 |
|
1031 |
|
1042 |
|
1032 |
|
|
|
1033 |
|
|
|
1034 |
|
|
|
1035 |
|
|
|
|
1043 |
|
|
|
1044 |
|
|
|
1045 |
|
|
|
1046 |
|
|
|
1047 |
|
|
|
1048 |
|
|
|
1049 |
|
|
|
1050 |
|
|
|
1051 |
|
|
|
1052 |
|
|
|
1053 |
|
|
1036 |
|
1054 |
|
1037 |
|
1055 |
|
1038 |
|
1056 |
|
|
|
||
1303 |
|
1321 |
|
1304 |
|
1322 |
|
1305 |
|
1323 |
|
1306 |
|
|
|
|
1324 |
|
|
|
1325 |
|
|
1307 |
|
1326 |
|
|
1327 |
|
|
|
1328 |
|
|
|
1329 |
|
|
1308 |
|
1330 |
|
1309 |
|
1331 |
|
1310 |
|
1332 |
|
|
|
||
166 |
|
166 |
|
167 |
|
167 |
|
168 |
|
168 |
|
|
169 |
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
|
|
169 |
|
174 |
|
170 |
|
175 |
|
171 |
|
176 |
|